Skip to content

Commit a7ebb8d

Browse files
chore: 🐝 Update SDK - Generate 0.28.0 (#164)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/50f5bbf52ecbfd5b1b0515943cf6ce71> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/be2c4f2cbf4f91fc80b012c42080019e> # SDK update ## Versioning Version Bump Type: [minor] - 🤖 (automated) ## Typescript SDK Changes Detected: * `unstructured_client.general.partition()`: * `request.partitionParameters.vlmModel` **Changed** **Breaking** :warning: <details> <summary>OpenAPI Change Summary</summary> ``` ├─┬Info │ └──[🔀] version (5:16) └─┬Components └─┬partition_parameters ├─┬vlm_model_provider │ ├──[+] examples (349:15) │ └──[+] examples (350:15) └─┬vlm_model ├──[-] enum (1:6814)❌ ├──[-] enum (1:6898)❌ ├──[-] enum (1:6486)❌ ├──[-] enum (1:6629)❌ ├──[-] enum (1:6677)❌ ├──[-] enum (1:6769)❌ ├──[-] enum (1:6860)❌ ├──[-] enum (1:6936)❌ ├──[-] enum (1:6516)❌ ├──[-] enum (1:6546)❌ ├──[-] enum (1:6556)❌ ├──[-] enum (1:6574)❌ ├──[-] enum (1:6601)❌ └──[-] enum (1:6725)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 16 | 14 | </details> ## TYPESCRIPT CHANGELOG No relevant generator changes Based on [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) 1.636.3 Co-authored-by: speakeasybot <[email protected]>
1 parent 3ab9024 commit a7ebb8d

File tree

23 files changed

+61
-156
lines changed

23 files changed

+61
-156
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 8 deletions
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: 75c4d04b99256e1e68d9940a982e1583
5-
docVersion: 1.1.68
6-
speakeasyVersion: 1.634.0
7-
generationVersion: 2.721.0
8-
releaseVersion: 0.27.0
9-
configChecksum: 27956e70414cd99591e801c7e4701835
4+
docChecksum: f69e063f6bdd37a7b29266aa34bb30a4
5+
docVersion: 1.2.0
6+
speakeasyVersion: 1.636.3
7+
generationVersion: 2.723.11
8+
releaseVersion: 0.28.0
9+
configChecksum: 2f7d038efc0c06515032eb8b02c062d8
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -53,10 +53,8 @@ generatedFiles:
5353
- docs/sdk/models/shared/security.md
5454
- docs/sdk/models/shared/strategy.md
5555
- docs/sdk/models/shared/validationerror.md
56-
- docs/sdk/models/shared/vlmmodel.md
5756
- docs/sdk/models/shared/vlmmodelprovider.md
5857
- docs/sdks/general/README.md
59-
- docs/sdks/unstructuredclient/README.md
6058
- eslint.config.mjs
6159
- examples/.env.template
6260
- examples/README.md
@@ -141,3 +139,4 @@ examples:
141139
application/json: {"detail": "An error occurred"}
142140
examplesVersion: 1.0.2
143141
generatedTests: {}
142+
releaseNotes: "## Typescript SDK Changes Detected:\n* `unstructured_client.general.partition()`: \n * `request.partitionParameters.vlmModel` **Changed** **Breaking** :warning:\n"

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.634.0
1+
speakeasyVersion: 1.636.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:bb79c0280ddde01e2c792461935790617b4867ce4d03bf000bdee3dffc43b9e2
6-
sourceBlobDigest: sha256:3040373c9d49d3dc7a4d1a497f82579fa11252afd263ebbe6e3a3c728fefe519
5+
sourceRevisionDigest: sha256:05de7030a5d70689f6aa854ba186d44d83fe0951c5ae72a2310e91686946cadf
6+
sourceBlobDigest: sha256:cfb1e6a24482556f98c7b5845db67aaf57ecbf7556a0d9904e673bfe0fc3ba7d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1759192246
10-
- 1.1.68
9+
- speakeasy-sdk-regen-1760488307
10+
- 1.2.0
1111
targets:
1212
unstructed-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:bb79c0280ddde01e2c792461935790617b4867ce4d03bf000bdee3dffc43b9e2
16-
sourceBlobDigest: sha256:3040373c9d49d3dc7a4d1a497f82579fa11252afd263ebbe6e3a3c728fefe519
15+
sourceRevisionDigest: sha256:05de7030a5d70689f6aa854ba186d44d83fe0951c5ae72a2310e91686946cadf
16+
sourceBlobDigest: sha256:cfb1e6a24482556f98c7b5845db67aaf57ecbf7556a0d9904e673bfe0fc3ba7d
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:48b37447a8858ac12025cfd1098aa4f1e9a8e86a4c7bc1147aaad3a3bdc7c0ab
18+
codeSamplesRevisionDigest: sha256:c138bec1c39605da1156d9adb9a7ee21d9c28952f59b3f713b5400a97316ac96
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ specific category of applications.
2222
import { openAsBlob } from "node:fs";
2323
import { UnstructuredClientCore } from "unstructured-client/core.js";
2424
import { generalPartition } from "unstructured-client/funcs/generalPartition.js";
25-
import { Strategy, VLMModel, VLMModelProvider } from "unstructured-client/sdk/models/shared";
25+
import { Strategy, VLMModelProvider } from "unstructured-client/sdk/models/shared";
2626

2727
// Use `UnstructuredClientCore` for best tree-shaking performance.
2828
// You can create one instance of it to use across an application.
@@ -38,7 +38,7 @@ async function run() {
3838
10,
3939
],
4040
strategy: Strategy.Auto,
41-
vlmModel: VLMModel.Gpt4o,
41+
vlmModel: "gpt-4o",
4242
vlmModelProvider: VLMModelProvider.Openai,
4343
},
4444
});

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ import { openAsBlob } from "node:fs";
207207
import { UnstructuredClient } from "unstructured-client";
208208
import {
209209
Strategy,
210-
VLMModel,
211210
VLMModelProvider,
212211
} from "unstructured-client/sdk/models/shared";
213212

@@ -223,7 +222,7 @@ async function run() {
223222
10,
224223
],
225224
strategy: Strategy.Auto,
226-
vlmModel: VLMModel.Gpt4o,
225+
vlmModel: "gpt-4o",
227226
vlmModelProvider: VLMModelProvider.Openai,
228227
},
229228
}, {
@@ -252,7 +251,6 @@ import { openAsBlob } from "node:fs";
252251
import { UnstructuredClient } from "unstructured-client";
253252
import {
254253
Strategy,
255-
VLMModel,
256254
VLMModelProvider,
257255
} from "unstructured-client/sdk/models/shared";
258256

@@ -279,7 +277,7 @@ async function run() {
279277
10,
280278
],
281279
strategy: Strategy.Auto,
282-
vlmModel: VLMModel.Gpt4o,
280+
vlmModel: "gpt-4o",
283281
vlmModelProvider: VLMModelProvider.Openai,
284282
},
285283
});
@@ -381,7 +379,6 @@ import { openAsBlob } from "node:fs";
381379
import { UnstructuredClient } from "unstructured-client";
382380
import {
383381
Strategy,
384-
VLMModel,
385382
VLMModelProvider,
386383
} from "unstructured-client/sdk/models/shared";
387384

@@ -397,7 +394,7 @@ async function run() {
397394
10,
398395
],
399396
strategy: Strategy.Auto,
400-
vlmModel: VLMModel.Gpt4o,
397+
vlmModel: "gpt-4o",
401398
vlmModelProvider: VLMModelProvider.Openai,
402399
},
403400
});

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,4 +694,14 @@ Based on:
694694
### Generated
695695
- [typescript v0.27.0] .
696696
### Releases
697-
- [NPM v0.27.0] https://www.npmjs.com/package/unstructured-client/v/0.27.0 - .
697+
- [NPM v0.27.0] https://www.npmjs.com/package/unstructured-client/v/0.27.0 - .
698+
699+
## 2025-10-16 00:31:05
700+
### Changes
701+
Based on:
702+
- OpenAPI Doc
703+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
704+
### Generated
705+
- [typescript v0.28.0] .
706+
### Releases
707+
- [NPM v0.28.0] https://www.npmjs.com/package/unstructured-client/v/0.28.0 - .

RUNTIMES.md

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

33
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
44

5-
* [Web Fetch API][web-fetch]
6-
* [Web Streams API][web-streams] and in particular `ReadableStream`
7-
* [Async iterables][async-iter] using `Symbol.asyncIterator`
5+
- [Web Fetch API][web-fetch]
6+
- [Web Streams API][web-streams] and in particular `ReadableStream`
7+
- [Async iterables][async-iter] using `Symbol.asyncIterator`
88

99
[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
1010
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
@@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:
2525

2626
The following `tsconfig.json` options are recommended for projects using this
2727
SDK in order to get static type support for features like async iterables,
28-
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
28+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
2929
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
3030
so on):
3131

@@ -38,11 +38,11 @@ so on):
3838
{
3939
"compilerOptions": {
4040
"target": "es2020", // or higher
41-
"lib": ["es2020", "dom", "dom.iterable"],
41+
"lib": ["es2020", "dom", "dom.iterable"]
4242
}
4343
}
4444
```
4545

4646
While `target` can be set to older ECMAScript versions, it may result in extra,
4747
unnecessary compatibility code being generated if you are not targeting old
48-
runtimes.
48+
runtimes.

USAGE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { openAsBlob } from "node:fs";
44
import { UnstructuredClient } from "unstructured-client";
55
import {
66
Strategy,
7-
VLMModel,
87
VLMModelProvider,
98
} from "unstructured-client/sdk/models/shared";
109

@@ -20,7 +19,7 @@ async function run() {
2019
10,
2120
],
2221
strategy: Strategy.Auto,
23-
vlmModel: VLMModel.Gpt4o,
22+
vlmModel: "gpt-4o",
2423
vlmModelProvider: VLMModelProvider.Openai,
2524
},
2625
});

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
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 { Strategy, 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 strategy: Strategy.Auto,\n vlmModelProvider: VLMModelProvider.Openai,\n vlmModel: VLMModel.Gpt4o,\n chunkingStrategy: \"by_title\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
11+
"source": "import { openAsBlob } from \"node:fs\";\nimport { UnstructuredClient } from \"unstructured-client\";\nimport { Strategy, 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 strategy: Strategy.Auto,\n vlmModelProvider: VLMModelProvider.Openai,\n vlmModel: \"gpt-4o\",\n chunkingStrategy: \"by_title\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"

0 commit comments

Comments
 (0)