diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3423def2..9fbc3544 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 @@ -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: "" "422": - application/json: {"detail": []} + application/json: {"detail": ""} 5XX: application/json: {"detail": "An error occurred"} -examplesVersion: 1.0.1 +examplesVersion: 1.0.2 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 55f0d158..7ad7cc29 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -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 diff --git a/RELEASES.md b/RELEASES.md index 2883483f..76d70c50 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 25245afb..29daf366 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -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();" diff --git a/gen.yaml b/gen.yaml index 64bafbf5..e51917dc 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 0.24.3 + version: 0.24.4 additionalDependencies: dependencies: async: ^3.2.5 diff --git a/jsr.json b/jsr.json index 8c0c0123..e57b63f3 100644 --- a/jsr.json +++ b/jsr.json @@ -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", diff --git a/package-lock.json b/package-lock.json index 6b5416af..8256759e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "unstructured-client", - "version": "0.24.3", + "version": "0.24.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "unstructured-client", - "version": "0.24.3", + "version": "0.24.4", "dependencies": { "async": "^3.2.5", "pdf-lib": "^1.17.1" @@ -29,7 +29,7 @@ "typescript": "^5.4.5", "typescript-eslint": "^8.22.0", "vitest": "^2.1.3", - "zod": "^3.23.4" + "zod": "^3.25.17" }, "peerDependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", @@ -5433,9 +5433,9 @@ } }, "node_modules/zod": { - "version": "3.24.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", - "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", + "version": "3.25.34", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", + "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", "dev": true, "license": "MIT", "funding": { @@ -8948,9 +8948,9 @@ "dev": true }, "zod": { - "version": "3.24.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", - "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", + "version": "3.25.34", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", + "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", "dev": true }, "zod-to-json-schema": { diff --git a/package.json b/package.json index 8801746e..2f59a3bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstructured-client", - "version": "0.24.3", + "version": "0.24.4", "author": "Unstructured", "type": "module", "bin": { @@ -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", diff --git a/src/lib/config.ts b/src/lib/config.ts index fe6144cf..fb37706e 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -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; diff --git a/src/mcp-server/cli/start/impl.ts b/src/mcp-server/cli/start/impl.ts index d204566e..7da691f7 100644 --- a/src/mcp-server/cli/start/impl.ts +++ b/src/mcp-server/cli/start/impl.ts @@ -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, }); @@ -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, }); diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index f2d99373..2044c7a3 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.24.3", + currentVersion: "0.24.4", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 463a255b..7d44fd63 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -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({