diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3389f0f3..348e3c3b 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: 8e9d88e0631cbf193120f69906d764b8 - docVersion: 1.1.39 - speakeasyVersion: 1.583.0 - generationVersion: 2.658.3 - releaseVersion: 0.26.2 - configChecksum: 6038ab44f9c67a08af5af7046ec8b96c + docChecksum: cd27ee62248f546725afe6647656e4b4 + docVersion: 1.1.45 + speakeasyVersion: 1.595.0 + generationVersion: 2.670.1 + releaseVersion: 0.26.3 + configChecksum: dfa3fe196489685301649fa907100f57 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.12 - core: 3.21.14 + core: 3.21.17 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c7610833..29e4e804 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.583.0 +speakeasyVersion: 1.595.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:d82494f40479b3d482dee17ac78879c3e6e2752e9374cc954ae539ad53c50b77 - sourceBlobDigest: sha256:27539a792b3eafe767cedf6c343abc4fcc3f95fac4c4b2ddb08eba6b418b2d33 + sourceRevisionDigest: sha256:fac30f9b46f4271d544276b310a11c9fa3f75d605c01b77a2d95486b75ad6bfa + sourceBlobDigest: sha256:23411dfea3509283f99667310d92bfd005f613849f9e044f6ab416bc217f69c8 tags: - latest - - speakeasy-sdk-regen-1752712489 - - 1.1.39 + - speakeasy-sdk-regen-1753317295 + - 1.1.45 targets: unstructed-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:d82494f40479b3d482dee17ac78879c3e6e2752e9374cc954ae539ad53c50b77 - sourceBlobDigest: sha256:27539a792b3eafe767cedf6c343abc4fcc3f95fac4c4b2ddb08eba6b418b2d33 + sourceRevisionDigest: sha256:fac30f9b46f4271d544276b310a11c9fa3f75d605c01b77a2d95486b75ad6bfa + sourceBlobDigest: sha256:23411dfea3509283f99667310d92bfd005f613849f9e044f6ab416bc217f69c8 codeSamplesNamespace: my-source-typescript-code-samples - codeSamplesRevisionDigest: sha256:00bb12e2392099fb2e303d8f7d252d1eca7f7a70b525f5c25e41f6e89522d2bf + codeSamplesRevisionDigest: sha256:fd7c411547ad808b332666f8d4d0e20d719a331cc467b485db03b3adc6b0ef99 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 23e1e31f..8af7e390 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ The `HTTPClient` constructor takes an optional `fetcher` argument that can be used to integrate a third-party HTTP client or when writing tests to mock out the HTTP client and feed in fixtures. -The following example shows how to use the `"beforeRequest"` hook to add a +The following example shows how to use the `"beforeRequest"` hook to to add a custom header and a timeout to requests and how to use the `"requestError"` hook to log errors: diff --git a/RELEASES.md b/RELEASES.md index a7e70414..902f4c33 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -664,4 +664,14 @@ Based on: ### Generated - [typescript v0.26.2] . ### Releases -- [NPM v0.26.2] https://www.npmjs.com/package/unstructured-client/v/0.26.2 - . \ No newline at end of file +- [NPM v0.26.2] https://www.npmjs.com/package/unstructured-client/v/0.26.2 - . + +## 2025-08-01 00:40:05 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.595.0 (2.670.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.26.3] . +### Releases +- [NPM v0.26.3] https://www.npmjs.com/package/unstructured-client/v/0.26.3 - . \ No newline at end of file diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 45e15c73..67511c18 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -13,6 +13,7 @@ Description ### Example Usage + ```typescript import { openAsBlob } from "node:fs"; import { UnstructuredClient } from "unstructured-client"; diff --git a/examples/package-lock.json b/examples/package-lock.json index 05de2899..4e804ae1 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,10 +18,11 @@ }, "..": { "name": "unstructured-client", - "version": "0.26.2", + "version": "0.26.3", "dependencies": { "async": "^3.2.5", - "pdf-lib": "^1.17.1" + "pdf-lib": "^1.17.1", + "zod": "^3.20.0" }, "bin": { "mcp": "bin/mcp-server.js" @@ -40,12 +41,10 @@ "tshy": "^2.0.0", "typescript": "^5.4.5", "typescript-eslint": "^8.22.0", - "vitest": "^2.1.3", - "zod": "^3.25.17" + "vitest": "^2.1.3" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { diff --git a/gen.yaml b/gen.yaml index 0834ac35..6070acec 100644 --- a/gen.yaml +++ b/gen.yaml @@ -18,7 +18,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.26.2 + version: 0.26.3 additionalDependencies: dependencies: async: ^3.2.5 diff --git a/jsr.json b/jsr.json index 7f7f97ad..9f0f65fa 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "unstructured-client", - "version": "0.26.2", + "version": "0.26.3", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 61949a4a..9c3784dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,16 @@ { "name": "unstructured-client", - "version": "0.26.2", + "version": "0.26.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "unstructured-client", - "version": "0.26.2", + "version": "0.26.3", "dependencies": { "async": "^3.2.5", - "pdf-lib": "^1.17.1" + "pdf-lib": "^1.17.1", + "zod": "^3.20.0" }, "bin": { "mcp": "bin/mcp-server.js" @@ -28,12 +29,10 @@ "tshy": "^2.0.0", "typescript": "^5.4.5", "typescript-eslint": "^8.22.0", - "vitest": "^2.1.3", - "zod": "^3.25.17" + "vitest": "^2.1.3" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { @@ -5425,7 +5424,6 @@ "version": "3.25.34", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" @@ -8929,8 +8927,7 @@ "zod": { "version": "3.25.34", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", - "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", - "dev": true + "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==" }, "zod-to-json-schema": { "version": "3.24.3", diff --git a/package.json b/package.json index eb80f2a9..2a50d66f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstructured-client", - "version": "0.26.2", + "version": "0.26.3", "author": "Unstructured", "type": "module", "bin": { @@ -34,8 +34,7 @@ "prepublishOnly": "npm run build" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "peerDependenciesMeta": { "@modelcontextprotocol/sdk": { @@ -56,12 +55,12 @@ "tshy": "^2.0.0", "typescript": "^5.4.5", "typescript-eslint": "^8.22.0", - "vitest": "^2.1.3", - "zod": "^3.25.17" + "vitest": "^2.1.3" }, "dependencies": { "async": "^3.2.5", - "pdf-lib": "^1.17.1" + "pdf-lib": "^1.17.1", + "zod": "^3.20.0" }, "exports": { ".": { diff --git a/src/lib/config.ts b/src/lib/config.ts index 10f19370..caebb9ef 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -67,9 +67,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "1.1.39", - sdkVersion: "0.26.2", - genVersion: "2.658.3", + openapiDocVersion: "1.1.45", + sdkVersion: "0.26.3", + genVersion: "2.670.1", userAgent: - "speakeasy-sdk/typescript 0.26.2 2.658.3 1.1.39 unstructured-client", + "speakeasy-sdk/typescript 0.26.3 2.670.1 1.1.45 unstructured-client", } as const; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 4ea0a7d7..0cb0956a 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.26.2", + currentVersion: "0.26.3", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 7b90101d..e825f579 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.26.2", + version: "0.26.3", }); const client = new UnstructuredClientCore({