Skip to content

chore: 🐝 Update SDK - Generate 0.24.4 #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
management:
docChecksum: 6c28c48f4266d95c45657bae345b82fb
docVersion: 1.1.13
speakeasyVersion: 1.545.0
generationVersion: 2.599.0
releaseVersion: 0.24.3
configChecksum: d78bbaea86964404b34bc0a62b6aeb8d
docChecksum: 3e42d77bf491e4e7a999ec6d27d41fd1
docVersion: 1.1.17
speakeasyVersion: 1.552.0
generationVersion: 2.610.0
releaseVersion: 0.24.4
configChecksum: c0e0d6524bed361c1a8ebeda0e6333df
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand All @@ -16,7 +16,7 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.21.7
core: 3.21.9
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
Expand Down Expand Up @@ -124,14 +124,14 @@ examples:
partition:
speakeasy-default-partition:
requestBody:
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}
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": "auto", "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
responses:
"200":
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"}}]
text/csv: "<value>"
"422":
application/json: {"detail": []}
application/json: {"detail": "<value>"}
5XX:
application/json: {"detail": "An error occurred"}
examplesVersion: 1.0.1
examplesVersion: 1.0.2
generatedTests: {}
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.545.0
speakeasyVersion: 1.552.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:d34465a9c2172b90b716281518501d35cd2cc2cf9bbde42c5d7255f59adfbef9
sourceBlobDigest: sha256:3bbf99a1b8e84244885492e6aeb9557ec26826c120ae8bd93ab9547891bd7030
sourceRevisionDigest: sha256:11dc672fb20011d88c36c9e88092258b76ffe07dbf7d4d9493a4a8a63de97e0b
sourceBlobDigest: sha256:d70162f1aa06e4b75fdb38608d8ca25948651246e8da161f0947af385732aff3
tags:
- latest
- speakeasy-sdk-regen-1747269081
- 1.1.13
- speakeasy-sdk-regen-1748046653
- 1.1.17
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:d34465a9c2172b90b716281518501d35cd2cc2cf9bbde42c5d7255f59adfbef9
sourceBlobDigest: sha256:3bbf99a1b8e84244885492e6aeb9557ec26826c120ae8bd93ab9547891bd7030
sourceRevisionDigest: sha256:11dc672fb20011d88c36c9e88092258b76ffe07dbf7d4d9493a4a8a63de97e0b
sourceBlobDigest: sha256:d70162f1aa06e4b75fdb38608d8ca25948651246e8da161f0947af385732aff3
codeSamplesNamespace: my-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:e4eeca554208fec981d9bf3fab6f7336191a60f4efd328e124e9d69176a7c43d
codeSamplesRevisionDigest: sha256:116507a44839dec1f86e45a1a782df522e4ff29c592635c14f2f5e8196ec91d7
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,4 +594,14 @@ Based on:
### Generated
- [typescript v0.24.3] .
### Releases
- [NPM v0.24.3] https://www.npmjs.com/package/unstructured-client/v/0.24.3 - .
- [NPM v0.24.3] https://www.npmjs.com/package/unstructured-client/v/0.24.3 - .

## 2025-05-29 00:32:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.24.4] .
### Releases
- [NPM v0.24.4] https://www.npmjs.com/package/unstructured-client/v/0.24.4 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ actions:
"x-codeSamples":
- "lang": "typescript"
"label": "partition"
"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();"
"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: \"by_title\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.24.3
version: 0.24.4
additionalDependencies:
dependencies:
async: ^3.2.5
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "unstructured-client",
"version": "0.24.3",
"version": "0.24.4",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unstructured-client",
"version": "0.24.3",
"version": "0.24.4",
"author": "Unstructured",
"type": "module",
"bin": {
Expand Down Expand Up @@ -57,7 +57,7 @@
"typescript": "^5.4.5",
"typescript-eslint": "^8.22.0",
"vitest": "^2.1.3",
"zod": "^3.23.4"
"zod": "^3.25.17"
},
"dependencies": {
"async": "^3.2.5",
Expand Down
8 changes: 4 additions & 4 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {

export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.1.13",
sdkVersion: "0.24.3",
genVersion: "2.599.0",
openapiDocVersion: "1.1.17",
sdkVersion: "0.24.4",
genVersion: "2.610.0",
userAgent:
"speakeasy-sdk/typescript 0.24.3 2.599.0 1.1.13 unstructured-client",
"speakeasy-sdk/typescript 0.24.4 2.610.0 1.1.17 unstructured-client",
} as const;
4 changes: 2 additions & 2 deletions src/mcp-server/cli/start/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function startStdio(flags: StartCommandFlags) {
logger,
allowedTools: flags.tool,
scopes: flags.scope,
security: { apiKeyAuth: flags["api-key-auth"] },
security: { apiKeyAuth: flags["api-key-auth"] ?? "" },
serverURL: flags["server-url"],
server: flags.server,
});
Expand All @@ -71,7 +71,7 @@ async function startSSE(flags: StartCommandFlags) {
logger,
allowedTools: flags.tool,
scopes: flags.scope,
security: { apiKeyAuth: flags["api-key-auth"] },
security: { apiKeyAuth: flags["api-key-auth"] ?? "" },
serverURL: flags["server-url"],
server: flags.server,
});
Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = buildRouteMap({
export const app = buildApplication(routes, {
name: "mcp",
versionInfo: {
currentVersion: "0.24.3",
currentVersion: "0.24.4",
},
});

Expand Down
2 changes: 1 addition & 1 deletion src/mcp-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "UnstructuredClient",
version: "0.24.3",
version: "0.24.4",
});

const client = new UnstructuredClientCore({
Expand Down