Skip to content

Commit a5579b4

Browse files
chore: 🐝 Update SDK - Generate 0.21.1 (#141)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/7d4d4b9d5c29f280c3c1995ff9011a85> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/840ddc3267f0647d17b94046e1d43f1f> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.517.3 (2.548.6) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [patch] - 🤖 (automated) ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (5:16) ├─┬Components │ └─┬partition_parameters │ ├─┬vlm_model_provider │ │ └──[🔀] title (350:22) │ └─┬vlm_model │ └──[🔀] title (373:22) └─┬Extensions └──[🔀] x-speakeasy-retries (600:26) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 2 | 0 | ## TYPESCRIPT CHANGELOG ## core: 3.21.4 - 2025-03-11 ### 🐛 Bug Fixes - remove @ts-expect-error directive for duplex: "half" fetch option *(commit by [@disintegrator](https://github.com/disintegrator))* Co-authored-by: speakeasybot <[email protected]>
1 parent dd68cfa commit a5579b4

19 files changed

+108
-111
lines changed

.speakeasy/gen.lock

+9-9
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: f2a95da32ec2c53d1f83bd13ad725334
5-
docVersion: 1.0.78
6-
speakeasyVersion: 1.509.0
7-
generationVersion: 2.539.0
8-
releaseVersion: 0.21.0
9-
configChecksum: 13f5e8bad8597e9ba62b12b6ffeed9c5
4+
docChecksum: 2e7f129641ad96d49fcda2ceb173d43c
5+
docVersion: 1.0.81
6+
speakeasyVersion: 1.517.3
7+
generationVersion: 2.548.6
8+
releaseVersion: 0.21.1
9+
configChecksum: e65806695f558e569e7327b62f146277
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
1818
constsAndDefaults: 0.1.11
19-
core: 3.21.3
19+
core: 3.21.4
2020
defaultEnabledRetries: 0.1.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.1.2
@@ -49,11 +49,11 @@ 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
5452
- docs/sdk/models/shared/security.md
5553
- docs/sdk/models/shared/strategy.md
5654
- docs/sdk/models/shared/validationerror.md
55+
- docs/sdk/models/shared/vlmmodel.md
56+
- docs/sdk/models/shared/vlmmodelprovider.md
5757
- docs/sdks/general/README.md
5858
- docs/sdks/unstructuredclient/README.md
5959
- eslint.config.mjs

.speakeasy/workflow.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.509.0
1+
speakeasyVersion: 1.517.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
6-
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
5+
sourceRevisionDigest: sha256:5c2f4c4260daeae651dff81c9ec543cf04f8652ee4731c54363766ad6101cb9a
6+
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741024400
10-
- 1.0.78
9+
- speakeasy-sdk-regen-1741912135
10+
- 1.0.81
1111
targets:
1212
unstructed-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
16-
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
15+
sourceRevisionDigest: sha256:5c2f4c4260daeae651dff81c9ec543cf04f8652ee4731c54363766ad6101cb9a
16+
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:bd453feade54d360a88a820a9854fa64c6be4abc145518455742ae1d1591961b
18+
codeSamplesRevisionDigest: sha256:3091e64d53d2b0729ef230c5abcccf9f7fe0058c0b30ee15342eb55047902e18
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +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";
26+
import { VLMModel, VLMModelProvider } from "unstructured-client/sdk/models/shared";
2727

2828
// Use `UnstructuredClientCore` for best tree-shaking performance.
2929
// You can create one instance of it to use across an application.
@@ -38,8 +38,8 @@ async function run() {
3838
1,
3939
10,
4040
],
41-
vlmModel: PartitionParametersStrategy.Gpt4o,
42-
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
41+
vlmModel: VLMModel.Gpt4o,
42+
vlmModelProvider: VLMModelProvider.Openai,
4343
},
4444
});
4545

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ To change the default retry strategy for a single API call, simply provide a ret
156156
import { openAsBlob } from "node:fs";
157157
import { UnstructuredClient } from "unstructured-client";
158158
import {
159-
PartitionParametersSchemasStrategy,
160-
PartitionParametersStrategy,
159+
VLMModel,
160+
VLMModelProvider,
161161
} from "unstructured-client/sdk/models/shared";
162162

163163
const unstructuredClient = new UnstructuredClient();
@@ -171,8 +171,8 @@ async function run() {
171171
1,
172172
10,
173173
],
174-
vlmModel: PartitionParametersStrategy.Gpt4o,
175-
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
174+
vlmModel: VLMModel.Gpt4o,
175+
vlmModelProvider: VLMModelProvider.Openai,
176176
},
177177
}, {
178178
retries: {
@@ -200,8 +200,8 @@ If you'd like to override the default retry strategy for all operations that sup
200200
import { openAsBlob } from "node:fs";
201201
import { UnstructuredClient } from "unstructured-client";
202202
import {
203-
PartitionParametersSchemasStrategy,
204-
PartitionParametersStrategy,
203+
VLMModel,
204+
VLMModelProvider,
205205
} from "unstructured-client/sdk/models/shared";
206206

207207
const unstructuredClient = new UnstructuredClient({
@@ -226,8 +226,8 @@ async function run() {
226226
1,
227227
10,
228228
],
229-
vlmModel: PartitionParametersStrategy.Gpt4o,
230-
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
229+
vlmModel: VLMModel.Gpt4o,
230+
vlmModelProvider: VLMModelProvider.Openai,
231231
},
232232
});
233233

@@ -328,8 +328,8 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
328328
import { openAsBlob } from "node:fs";
329329
import { UnstructuredClient } from "unstructured-client";
330330
import {
331-
PartitionParametersSchemasStrategy,
332-
PartitionParametersStrategy,
331+
VLMModel,
332+
VLMModelProvider,
333333
} from "unstructured-client/sdk/models/shared";
334334

335335
const unstructuredClient = new UnstructuredClient();
@@ -343,8 +343,8 @@ async function run() {
343343
1,
344344
10,
345345
],
346-
vlmModel: PartitionParametersStrategy.Gpt4o,
347-
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
346+
vlmModel: VLMModel.Gpt4o,
347+
vlmModelProvider: VLMModelProvider.Openai,
348348
},
349349
});
350350

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -534,4 +534,14 @@ Based on:
534534
### Generated
535535
- [typescript v0.21.0] .
536536
### Releases
537-
- [NPM v0.21.0] https://www.npmjs.com/package/unstructured-client/v/0.21.0 - .
537+
- [NPM v0.21.0] https://www.npmjs.com/package/unstructured-client/v/0.21.0 - .
538+
539+
## 2025-03-14 00:28:39
540+
### Changes
541+
Based on:
542+
- OpenAPI Doc
543+
- Speakeasy CLI 1.517.3 (2.548.6) https://github.com/speakeasy-api/speakeasy
544+
### Generated
545+
- [typescript v0.21.1] .
546+
### Releases
547+
- [NPM v0.21.1] https://www.npmjs.com/package/unstructured-client/v/0.21.1 - .

USAGE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { openAsBlob } from "node:fs";
44
import { UnstructuredClient } from "unstructured-client";
55
import {
6-
PartitionParametersSchemasStrategy,
7-
PartitionParametersStrategy,
6+
VLMModel,
7+
VLMModelProvider,
88
} from "unstructured-client/sdk/models/shared";
99

1010
const unstructuredClient = new UnstructuredClient();
@@ -18,8 +18,8 @@ async function run() {
1818
1,
1919
10,
2020
],
21-
vlmModel: PartitionParametersStrategy.Gpt4o,
22-
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
21+
vlmModel: VLMModel.Gpt4o,
22+
vlmModelProvider: VLMModelProvider.Openai,
2323
},
2424
});
2525

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\";\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();"
11+
"source": "import { openAsBlob } from \"node:fs\";\nimport { UnstructuredClient } from \"unstructured-client\";\nimport { VLMModel, VLMModelProvider } 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: VLMModelProvider.Openai,\n vlmModel: VLMModel.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)