Skip to content

Commit e00d052

Browse files
chore: 🐝 Update SDK - Generate 0.26.0 (#156)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/60aed35750dce6ffc08a2f3351f273f7> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/35f4ed8f23cbb4fefcfd8071e9648ccf> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.576.1 (2.651.2) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [minor] - 🤖 (automated) ## OpenAPI Change Summary ``` └─┬Info └──[🔀] version (5:16) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | ## TYPESCRIPT CHANGELOG ## core: 3.21.13 - 2025-07-03 ### 🐛 Bug Fixes - pin @types/bun version to last compatible release *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 3.21.12 - 2025-07-03 ### 🐛 Bug Fixes - fixed generation of example call signatures when skipping optional parameters *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* Co-authored-by: speakeasybot <[email protected]>
1 parent d6c073b commit e00d052

16 files changed

+874
-156
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/examples/node_modules
2+
.env
3+
.env.local
4+
.env.*.local
15
.DS_Store
26
**/.speakeasy/temp/
37
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 12 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: 9b8288dc7f01ab0f6eb797e80c06c995
5-
docVersion: 1.1.30
6-
speakeasyVersion: 1.574.1
7-
generationVersion: 2.647.2
8-
releaseVersion: 0.25.2
9-
configChecksum: 8ac4331f595e4a955ff8b0ce0c9da3cf
4+
docChecksum: 8f62b4348dafcf14eff2a6197cb404d2
5+
docVersion: 1.1.34
6+
speakeasyVersion: 1.576.1
7+
generationVersion: 2.651.2
8+
releaseVersion: 0.26.0
9+
configChecksum: ba03610a27c44b6c80fa1ac48f200b46
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -16,11 +16,11 @@ features:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
1818
constsAndDefaults: 0.1.12
19-
core: 3.21.11
19+
core: 3.21.13
2020
defaultEnabledRetries: 0.1.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.1.2
23-
examples: 2.81.5
23+
examples: 2.82.0
2424
globalSecurity: 2.82.13
2525
globalSecurityCallbacks: 0.1.0
2626
globalServerURLs: 2.82.5
@@ -58,6 +58,10 @@ generatedFiles:
5858
- docs/sdks/general/README.md
5959
- docs/sdks/unstructuredclient/README.md
6060
- eslint.config.mjs
61+
- examples/.env.template
62+
- examples/README.md
63+
- examples/generalPartition.example.ts
64+
- examples/package.json
6165
- jsr.json
6266
- package.json
6367
- src/core.ts

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.574.1
1+
speakeasyVersion: 1.576.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:38a045a6f6b311c0cb60dccbe7f479fef1090521ef45ac6c08f629824884d3d1
6-
sourceBlobDigest: sha256:9a30b03f66488202677d8442e4a4fbc65b6b639bdd740cdc5b2c22af45de2170
5+
sourceRevisionDigest: sha256:88df22653fd998cdac0f63b206f1873a33faca211c1af6033b28c468ebbdf480
6+
sourceBlobDigest: sha256:4d0d9f1f722ffe417b3987b8e5e8d3295c32661b64a42d11ad13979dee826e16
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1751416379
10-
- 1.1.30
9+
- speakeasy-sdk-regen-1751934799
10+
- 1.1.34
1111
targets:
1212
unstructed-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:38a045a6f6b311c0cb60dccbe7f479fef1090521ef45ac6c08f629824884d3d1
16-
sourceBlobDigest: sha256:9a30b03f66488202677d8442e4a4fbc65b6b639bdd740cdc5b2c22af45de2170
15+
sourceRevisionDigest: sha256:88df22653fd998cdac0f63b206f1873a33faca211c1af6033b28c468ebbdf480
16+
sourceBlobDigest: sha256:4d0d9f1f722ffe417b3987b8e5e8d3295c32661b64a42d11ad13979dee826e16
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:a7f39ceb784be5f33123e10681a51304d638145b4f67d03af7c13acd3f2ef613
18+
codeSamplesRevisionDigest: sha256:d6804f3dacb4071900ba499d2d3f4ebc78190a7f8e845cbb0fb530d4bc470ca7
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,4 +634,14 @@ Based on:
634634
### Generated
635635
- [typescript v0.25.2] .
636636
### Releases
637-
- [NPM v0.25.2] https://www.npmjs.com/package/unstructured-client/v/0.25.2 - .
637+
- [NPM v0.25.2] https://www.npmjs.com/package/unstructured-client/v/0.25.2 - .
638+
639+
## 2025-07-08 00:33:00
640+
### Changes
641+
Based on:
642+
- OpenAPI Doc
643+
- Speakeasy CLI 1.576.1 (2.651.2) https://github.com/speakeasy-api/speakeasy
644+
### Generated
645+
- [typescript v0.26.0] .
646+
### Releases
647+
- [NPM v0.26.0] https://www.npmjs.com/package/unstructured-client/v/0.26.0 - .

examples/.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# unstructured-client SDK Environment Variables
2+
# Copy this file to .env and fill in your actual values
3+
# DO NOT commit the .env file to version control

examples/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# unstructured-client Examples
2+
3+
This directory contains example scripts demonstrating how to use the unstructured-client SDK.
4+
5+
## Prerequisites
6+
7+
- Node.js (v18 or higher)
8+
- npm
9+
10+
## Setup
11+
12+
1. Copy `.env.template` to `.env`:
13+
```bash
14+
cp .env.template .env
15+
```
16+
17+
2. Edit `.env` and add your actual credentials
18+
19+
## Running the Examples
20+
21+
To run an example file from the examples directory:
22+
23+
```bash
24+
npm run build && npx tsx example.ts
25+
```
26+

examples/generalPartition.example.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3+
*/
4+
5+
/**
6+
* Example usage of the unstructured-client SDK
7+
*
8+
* To run this example from the examples directory:
9+
* npm run build && npx tsx generalPartition.ts
10+
*/
11+
12+
import { openAsBlob } from "node:fs";
13+
import { UnstructuredClient } from "unstructured-client";
14+
import {
15+
Strategy,
16+
VLMModel,
17+
VLMModelProvider,
18+
} from "unstructured-client/sdk/models/shared";
19+
20+
const unstructuredClient = new UnstructuredClient();
21+
22+
async function main() {
23+
const result = await unstructuredClient.partition({
24+
partitionParameters: {
25+
chunkingStrategy: "by_title",
26+
files: await openAsBlob("example.file"),
27+
splitPdfPageRange: [
28+
1,
29+
10,
30+
],
31+
strategy: Strategy.Auto,
32+
vlmModel: VLMModel.Gpt4o,
33+
vlmModelProvider: VLMModelProvider.Openai,
34+
},
35+
});
36+
37+
console.log(result);
38+
}
39+
40+
main().catch(console.error);

0 commit comments

Comments
 (0)