Skip to content

Commit 11a28c8

Browse files
authored
Merge pull request #12 from agentset-ai/speakeasy-sdk-regen-1772677010
chore: 🐝 Update SDK - Generate 0.7.1
2 parents 5a627a6 + 254e4e4 commit 11a28c8

60 files changed

Lines changed: 1558 additions & 112 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 194 additions & 97 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: true
3535
skipResponseBodyAssertions: false
3636
python:
37-
version: 0.7.0
37+
version: 0.7.1
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,120 @@ paths:
908908
$ref: "#/components/responses/429"
909909
"500":
910910
$ref: "#/components/responses/500"
911+
/v1/namespace/{namespaceId}/documents/{documentId}/chunks-download-url:
912+
post:
913+
operationId: "getChunksDownloadUrl"
914+
x-speakeasy-name-override: "getChunksDownloadUrl"
915+
summary: "Get chunks download URL"
916+
description: "Get a presigned download URL for a document's chunks. Only available for completed documents."
917+
tags:
918+
- "Documents"
919+
security:
920+
- token: []
921+
x-codeSamples:
922+
- lang: "TypeScript"
923+
source: "\nimport { Agentset } from \"agentset\";\n\nconst agentset = new Agentset({ apiKey: 'agentset_xxx' });\nconst ns = agentset.namespace('ns_xxx');\n\nconst { url } = await ns.documents.getChunksDownloadUrl(\"doc_123\");\nconst data = await (await fetch(url)).json();\nconsole.log(data);\n"
924+
parameters:
925+
- $ref: "#/components/parameters/NamespaceIdRef"
926+
- $ref: "#/components/parameters/DocumentIdRef"
927+
responses:
928+
"200":
929+
description: "The presigned download URL for the chunks"
930+
content:
931+
application/json:
932+
schema:
933+
type: "object"
934+
properties:
935+
success:
936+
type: "boolean"
937+
const: true
938+
data:
939+
type: "object"
940+
properties:
941+
url:
942+
type: "string"
943+
required:
944+
- "url"
945+
additionalProperties: false
946+
required:
947+
- "success"
948+
- "data"
949+
additionalProperties: false
950+
"400":
951+
$ref: "#/components/responses/400"
952+
"401":
953+
$ref: "#/components/responses/401"
954+
"403":
955+
$ref: "#/components/responses/403"
956+
"404":
957+
$ref: "#/components/responses/404"
958+
"409":
959+
$ref: "#/components/responses/409"
960+
"410":
961+
$ref: "#/components/responses/410"
962+
"422":
963+
$ref: "#/components/responses/422"
964+
"429":
965+
$ref: "#/components/responses/429"
966+
"500":
967+
$ref: "#/components/responses/500"
968+
/v1/namespace/{namespaceId}/documents/{documentId}/file-download-url:
969+
post:
970+
operationId: "getFileDownloadUrl"
971+
x-speakeasy-name-override: "getFileDownloadUrl"
972+
summary: "Get file download URL"
973+
description: "Get a presigned download URL for a document's source file. Only available for documents with source type MANAGED_FILE."
974+
tags:
975+
- "Documents"
976+
security:
977+
- token: []
978+
x-codeSamples:
979+
- lang: "TypeScript"
980+
source: "\nimport { Agentset } from \"agentset\";\nimport fs from 'fs';\n\nconst agentset = new Agentset({ apiKey: 'agentset_xxx' });\nconst ns = agentset.namespace('ns_xxx');\n\nconst { url } = await ns.documents.getFileDownloadUrl(\"doc_123\");\nconst file = await fetch(url);\nfs.writeFileSync(\"file.pdf\", Buffer.from(await file.arrayBuffer()));\n"
981+
parameters:
982+
- $ref: "#/components/parameters/NamespaceIdRef"
983+
- $ref: "#/components/parameters/DocumentIdRef"
984+
responses:
985+
"200":
986+
description: "The presigned download URL for the file"
987+
content:
988+
application/json:
989+
schema:
990+
type: "object"
991+
properties:
992+
success:
993+
type: "boolean"
994+
const: true
995+
data:
996+
type: "object"
997+
properties:
998+
url:
999+
type: "string"
1000+
required:
1001+
- "url"
1002+
additionalProperties: false
1003+
required:
1004+
- "success"
1005+
- "data"
1006+
additionalProperties: false
1007+
"400":
1008+
$ref: "#/components/responses/400"
1009+
"401":
1010+
$ref: "#/components/responses/401"
1011+
"403":
1012+
$ref: "#/components/responses/403"
1013+
"404":
1014+
$ref: "#/components/responses/404"
1015+
"409":
1016+
$ref: "#/components/responses/409"
1017+
"410":
1018+
$ref: "#/components/responses/410"
1019+
"422":
1020+
$ref: "#/components/responses/422"
1021+
"429":
1022+
$ref: "#/components/responses/429"
1023+
"500":
1024+
$ref: "#/components/responses/500"
9111025
/v1/namespace/{namespaceId}/search:
9121026
post:
9131027
operationId: "search"

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
speakeasyVersion: 1.723.0
1+
speakeasyVersion: 1.741.4
22
sources:
33
AgentsetAPI:
44
sourceNamespace: agentset-api
5-
sourceRevisionDigest: sha256:66c4e92a7df491e97bad85a871eefdbf59ffcbab47b39a048b9590c80b685e7d
6-
sourceBlobDigest: sha256:b65cee89e6dbdedd9285b367b1d3199f6b196486a6f1330c07851e737aebf901
5+
sourceRevisionDigest: sha256:ff64f8f72cc11cfff31bf5f55a16344f52071ccd66f57f527af35d801d5a55c6
6+
sourceBlobDigest: sha256:464e2bf29eae9f8ed4a434bcc75278fd03651d2a7d82e72c2f5ba94578bc4da3
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1769479071
109
- 0.0.1
1110
targets:
1211
agentset:
1312
source: AgentsetAPI
1413
sourceNamespace: agentset-api
15-
sourceRevisionDigest: sha256:66c4e92a7df491e97bad85a871eefdbf59ffcbab47b39a048b9590c80b685e7d
16-
sourceBlobDigest: sha256:b65cee89e6dbdedd9285b367b1d3199f6b196486a6f1330c07851e737aebf901
14+
sourceRevisionDigest: sha256:ff64f8f72cc11cfff31bf5f55a16344f52071ccd66f57f527af35d801d5a55c6
15+
sourceBlobDigest: sha256:464e2bf29eae9f8ed4a434bcc75278fd03651d2a7d82e72c2f5ba94578bc4da3
1716
codeSamplesNamespace: agentset-api-python-code-samples
18-
codeSamplesRevisionDigest: sha256:cce7fa2aded9955ca56f287491bcf3b2a4e3e30cef457d551a36c24b5d265d76
17+
codeSamplesRevisionDigest: sha256:56b65605a51344418c78b8bca38ba2aa88253a05c2ee37f884269b536d991a59
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README-PYPI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ with Agentset(
217217
* [list](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/documents/README.md#list) - Retrieve a list of documents
218218
* [get](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/documents/README.md#get) - Retrieve a document
219219
* [delete](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/documents/README.md#delete) - Delete a document
220+
* [get_chunks_download_url](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/documents/README.md#get_chunks_download_url) - Get chunks download URL
221+
* [get_file_download_url](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/documents/README.md#get_file_download_url) - Get file download URL
220222

221223
### [Hosting](https://github.com/agentset-ai/agentset-python/blob/master/docs/sdks/hostingsdk/README.md)
222224

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ with Agentset(
217217
* [list](docs/sdks/documents/README.md#list) - Retrieve a list of documents
218218
* [get](docs/sdks/documents/README.md#get) - Retrieve a document
219219
* [delete](docs/sdks/documents/README.md#delete) - Delete a document
220+
* [get_chunks_download_url](docs/sdks/documents/README.md#get_chunks_download_url) - Get chunks download URL
221+
* [get_file_download_url](docs/sdks/documents/README.md#get_file_download_url) - Get file download URL
220222

221223
### [Hosting](docs/sdks/hostingsdk/README.md)
222224

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,14 @@ Based on:
9898
### Generated
9999
- [python v0.7.0] .
100100
### Releases
101-
- [PyPI v0.7.0] https://pypi.org/project/agentset/0.7.0 - .
101+
- [PyPI v0.7.0] https://pypi.org/project/agentset/0.7.0 - .
102+
103+
## 2026-03-05 02:16:30
104+
### Changes
105+
Based on:
106+
- OpenAPI Doc
107+
- Speakeasy CLI 1.741.4 (2.849.7) https://github.com/speakeasy-api/speakeasy
108+
### Generated
109+
- [python v0.7.1] .
110+
### Releases
111+
- [PyPI v0.7.1] https://pypi.org/project/agentset/0.7.1 - .

docs/models/badrequestcode.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
A short code indicating the error code returned.
44

5+
## Example Usage
6+
7+
```python
8+
from agentset.models import BadRequestCode
9+
value: BadRequestCode = "bad_request"
10+
```
11+
512

613
## Values
714

docs/models/conflictcode.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
A short code indicating the error code returned.
44

5+
## Example Usage
6+
7+
```python
8+
from agentset.models import ConflictCode
9+
value: ConflictCode = "conflict"
10+
```
11+
512

613
## Values
714

docs/models/documentconfigchunkingstrategy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
> :warning: **DEPRECATED**: We no longer support this option..
66
7+
## Example Usage
8+
9+
```python
10+
from agentset.models import DocumentConfigChunkingStrategy
11+
value: DocumentConfigChunkingStrategy = "basic"
12+
```
13+
714

815
## Values
916

0 commit comments

Comments
 (0)