Skip to content

Commit dd68cfa

Browse files
chore: 🐝 Update SDK - Generate 0.21.0 (#140)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/68224999f21927625c2c7d9152743c78> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/44d8983d4c31df353dbb02cea99a7742> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [minor] - 🤖 (automated) ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (5:16) └─┬Components └─┬partition_parameters ├──[➕] properties (357:11) ├──[➕] properties (339:11) └─┬strategy ├──[➕] examples (335:15) └──[➕] enum (327:15) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 4 | 0 | | info | 1 | 0 | ## TYPESCRIPT CHANGELOG ## globalSecurity: 2.82.13 - 2025-02-06 ### 🐛 Bug Fixes - fixes to handling of security at both global and operation level especially for oauth2 *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## core: 3.21.3 - 2025-02-26 ### 🐛 Bug Fixes - handle open enum imports for enumFormat: enum *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.21.2 - 2025-02-25 ### 🐛 Bug Fixes - importing open enums with `useIndexModules: true` *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.21.1 - 2025-02-21 ### 🐛 Bug Fixes - handle usage snippet templating when no servers are defined in the spec *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.21.0 - 2025-02-17 ### 🐝 New Features - support openapi specs without server urls *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.20.0 - 2025-02-14 ### 🐝 New Features - return custom API promise from TS functions *(commit by [@disintegrator](https://github.com/disintegrator))* ## nullables: 0.1.1 - 2025-02-17 ### 🐛 Bug Fixes - represent maps/arrays that can contain null *(commit by [@disintegrator](https://github.com/disintegrator))* Co-authored-by: speakeasybot <[email protected]>
1 parent a43ee28 commit dd68cfa

27 files changed

+413
-45
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/mcp-server
2+
/bin
13
/.eslintcache
24
/react-query
35
/.speakeasy/reports

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!/REACT_QUERY.md
55
!/**/*.ts
66
!/**/*.js
7+
!/**/*.mjs
78
!/**/*.json
89
!/**/*.map
910

.speakeasy/gen.lock

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
4-
docChecksum: 7fee91d87907efe050b134e8b5b5e567
5-
docVersion: 1.0.68
6-
speakeasyVersion: 1.488.0
7-
generationVersion: 2.506.0
8-
releaseVersion: 0.20.0
9-
configChecksum: ded2fcd70f95791912c933a433b8800a
4+
docChecksum: f2a95da32ec2c53d1f83bd13ad725334
5+
docVersion: 1.0.78
6+
speakeasyVersion: 1.509.0
7+
generationVersion: 2.539.0
8+
releaseVersion: 0.21.0
9+
configChecksum: 13f5e8bad8597e9ba62b12b6ffeed9c5
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -16,16 +16,16 @@ features:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
1818
constsAndDefaults: 0.1.11
19-
core: 3.19.0
19+
core: 3.21.3
2020
defaultEnabledRetries: 0.1.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.1.2
2323
examples: 2.81.5
24-
globalSecurity: 2.82.12
24+
globalSecurity: 2.82.13
2525
globalSecurityCallbacks: 0.1.0
2626
globalServerURLs: 2.82.4
2727
nameOverrides: 2.81.2
28-
nullables: 0.1.0
28+
nullables: 0.1.1
2929
openEnums: 0.1.1
3030
responseFormat: 0.2.3
3131
retries: 2.83.0
@@ -49,6 +49,8 @@ generatedFiles:
4949
- docs/sdk/models/shared/loc.md
5050
- docs/sdk/models/shared/outputformat.md
5151
- docs/sdk/models/shared/partitionparameters.md
52+
- docs/sdk/models/shared/partitionparametersschemasstrategy.md
53+
- docs/sdk/models/shared/partitionparametersstrategy.md
5254
- docs/sdk/models/shared/security.md
5355
- docs/sdk/models/shared/strategy.md
5456
- docs/sdk/models/shared/validationerror.md
@@ -93,6 +95,7 @@ generatedFiles:
9395
- src/sdk/models/shared/security.ts
9496
- src/sdk/models/shared/validationerror.ts
9597
- src/sdk/sdk.ts
98+
- src/sdk/types/async.ts
9699
- src/sdk/types/blobs.ts
97100
- src/sdk/types/constdatetime.ts
98101
- src/sdk/types/enums.ts
@@ -106,7 +109,7 @@ examples:
106109
partition:
107110
speakeasy-default-partition:
108111
requestBody:
109-
multipart/form-data: {"chunking_strategy": "by_title", "coordinates": false, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "include_page_breaks": false, "include_slide_notes": true, "multipage_sections": true, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "split_pdf_allow_failed": false, "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "strategy": "hi_res", "unique_element_ids": false, "xml_keep_tags": false}
112+
multipart/form-data: {"chunking_strategy": "by_title", "coordinates": false, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "include_page_breaks": false, "include_slide_notes": true, "multipage_sections": true, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "split_pdf_allow_failed": false, "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "strategy": "vlm", "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
110113
responses:
111114
"200":
112115
application/json: [{"type": "Title", "element_id": "6aa0ff22f91bbe7e26e8e25ca8052acd", "text": "LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysis", "metadata": {"languages": ["eng"], "page_number": 1, "filename": "layout-parser-paper.pdf", "filetype": "application/pdf"}}]

.speakeasy/workflow.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
speakeasyVersion: 1.488.0
1+
speakeasyVersion: 1.509.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:f97624d306630f3e96d29e7169f824b40af26c9098b948e902d75c3fa0ebb132
6-
sourceBlobDigest: sha256:446c5e224c375fca629b3ee1283a516f07104c2c80afadef0d260c6d4e276509
5+
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
6+
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1739061007
10-
- 1.0.68
9+
- speakeasy-sdk-regen-1741024400
10+
- 1.0.78
1111
targets:
1212
unstructed-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:f97624d306630f3e96d29e7169f824b40af26c9098b948e902d75c3fa0ebb132
16-
sourceBlobDigest: sha256:446c5e224c375fca629b3ee1283a516f07104c2c80afadef0d260c6d4e276509
15+
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
16+
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:7c77c0f814f238b6c6a388b9df20e4cec4a687399fc0a55da62e240daaa03e5e
18+
codeSamplesRevisionDigest: sha256:bd453feade54d360a88a820a9854fa64c6be4abc145518455742ae1d1591961b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
2222
sources:
2323
my-source:
2424
inputs:
25-
- location: https://api.unstructured.io/general/openapi.json
25+
- location: https://api.unstructuredapp.io/general/openapi.json
2626
overlays:
2727
- location: ./overlay_client.yaml
2828
registry:

FUNCTIONS.md

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { openAsBlob } from "node:fs";
2323
import { UnstructuredClientCore } from "unstructured-client/core.js";
2424
import { generalPartition } from "unstructured-client/funcs/generalPartition.js";
2525
import { SDKValidationError } from "unstructured-client/sdk/models/errors/sdkvalidationerror.js";
26+
import { PartitionParametersSchemasStrategy, PartitionParametersStrategy } from "unstructured-client/sdk/models/shared";
2627

2728
// Use `UnstructuredClientCore` for best tree-shaking performance.
2829
// You can create one instance of it to use across an application.
@@ -37,6 +38,8 @@ async function run() {
3738
1,
3839
10,
3940
],
41+
vlmModel: PartitionParametersStrategy.Gpt4o,
42+
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
4043
},
4144
});
4245

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ To change the default retry strategy for a single API call, simply provide a ret
155155
```typescript
156156
import { openAsBlob } from "node:fs";
157157
import { UnstructuredClient } from "unstructured-client";
158+
import {
159+
PartitionParametersSchemasStrategy,
160+
PartitionParametersStrategy,
161+
} from "unstructured-client/sdk/models/shared";
158162

159163
const unstructuredClient = new UnstructuredClient();
160164

@@ -167,6 +171,8 @@ async function run() {
167171
1,
168172
10,
169173
],
174+
vlmModel: PartitionParametersStrategy.Gpt4o,
175+
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
170176
},
171177
}, {
172178
retries: {
@@ -193,6 +199,10 @@ If you'd like to override the default retry strategy for all operations that sup
193199
```typescript
194200
import { openAsBlob } from "node:fs";
195201
import { UnstructuredClient } from "unstructured-client";
202+
import {
203+
PartitionParametersSchemasStrategy,
204+
PartitionParametersStrategy,
205+
} from "unstructured-client/sdk/models/shared";
196206

197207
const unstructuredClient = new UnstructuredClient({
198208
retryConfig: {
@@ -216,6 +226,8 @@ async function run() {
216226
1,
217227
10,
218228
],
229+
vlmModel: PartitionParametersStrategy.Gpt4o,
230+
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
219231
},
220232
});
221233

@@ -315,6 +327,10 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
315327
```typescript
316328
import { openAsBlob } from "node:fs";
317329
import { UnstructuredClient } from "unstructured-client";
330+
import {
331+
PartitionParametersSchemasStrategy,
332+
PartitionParametersStrategy,
333+
} from "unstructured-client/sdk/models/shared";
318334

319335
const unstructuredClient = new UnstructuredClient();
320336

@@ -327,6 +343,8 @@ async function run() {
327343
1,
328344
10,
329345
],
346+
vlmModel: PartitionParametersStrategy.Gpt4o,
347+
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
330348
},
331349
});
332350

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -524,4 +524,14 @@ Based on:
524524
### Generated
525525
- [typescript v0.20.0] .
526526
### Releases
527-
- [NPM v0.20.0] https://www.npmjs.com/package/unstructured-client/v/0.20.0 - .
527+
- [NPM v0.20.0] https://www.npmjs.com/package/unstructured-client/v/0.20.0 - .
528+
529+
## 2025-03-03 17:53:04
530+
### Changes
531+
Based on:
532+
- OpenAPI Doc
533+
- Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy
534+
### Generated
535+
- [typescript v0.21.0] .
536+
### Releases
537+
- [NPM v0.21.0] https://www.npmjs.com/package/unstructured-client/v/0.21.0 - .

USAGE.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
```typescript
33
import { openAsBlob } from "node:fs";
44
import { UnstructuredClient } from "unstructured-client";
5+
import {
6+
PartitionParametersSchemasStrategy,
7+
PartitionParametersStrategy,
8+
} from "unstructured-client/sdk/models/shared";
59

610
const unstructuredClient = new UnstructuredClient();
711

@@ -14,6 +18,8 @@ async function run() {
1418
1,
1519
10,
1620
],
21+
vlmModel: PartitionParametersStrategy.Gpt4o,
22+
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
1723
},
1824
});
1925

codeSamples.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ actions:
88
"x-codeSamples":
99
- "lang": "typescript"
1010
"label": "partition"
11-
"source": "import { openAsBlob } from \"node:fs\";\nimport { UnstructuredClient } from \"unstructured-client\";\n\nconst unstructuredClient = new UnstructuredClient();\n\nasync function run() {\n const result = await unstructuredClient.general.partition({\n partitionParameters: {\n files: await openAsBlob(\"example.file\"),\n chunkingStrategy: \"basic\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
11+
"source": "import { openAsBlob } from \"node:fs\";\nimport { UnstructuredClient } from \"unstructured-client\";\nimport { PartitionParametersSchemasStrategy, PartitionParametersStrategy } from \"unstructured-client/sdk/models/shared\";\n\nconst unstructuredClient = new UnstructuredClient();\n\nasync function run() {\n const result = await unstructuredClient.general.partition({\n partitionParameters: {\n files: await openAsBlob(\"example.file\"),\n vlmModelProvider: PartitionParametersStrategy.Openai,\n vlmModel: PartitionParametersSchemasStrategy.Gpt4o,\n chunkingStrategy: \"basic\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"

0 commit comments

Comments
 (0)