diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c9a425e1..bcb8f65f 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: e1ddcc2cf71c4056b8ea02935f420820 - docVersion: 1.0.48 - speakeasyVersion: 1.401.2 - generationVersion: 2.421.3 - releaseVersion: 0.17.1 - configChecksum: 1055fe9a71bdb4cdbbe397b0bc8f8d65 + docChecksum: 2abad0a9424f43665ea6a06d7f1db4ca + docVersion: 1.0.50 + speakeasyVersion: 1.402.14 + generationVersion: 2.422.22 + releaseVersion: 0.17.2 + configChecksum: 59e68a7c488e725f2e91d1b372de6958 repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-js-client @@ -15,7 +15,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.11 - core: 3.17.6 + core: 3.17.7 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.1 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 5d381a9a..2c700d3c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.401.2 +speakeasyVersion: 1.402.14 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:a1cab617ff2e6f54400d7a1558b3a9dd86ec53c7db8e716cef2f90926c74798e - sourceBlobDigest: sha256:6b8cb9c93f74eb8c94e57469c73722791d51e77052bd0c4cf168aee14cd05ff3 + sourceRevisionDigest: sha256:9f9fd4ae0320f28c292ea90778bfa55ecfad47d42e93d27d0bae0a10fca34eb9 + sourceBlobDigest: sha256:339446a3ddb92ef648b5881135a44848f08cec15d2c4785d1000884ec29bd801 tags: - latest - main @@ -11,8 +11,8 @@ targets: unstructed-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:a1cab617ff2e6f54400d7a1558b3a9dd86ec53c7db8e716cef2f90926c74798e - sourceBlobDigest: sha256:6b8cb9c93f74eb8c94e57469c73722791d51e77052bd0c4cf168aee14cd05ff3 + sourceRevisionDigest: sha256:9f9fd4ae0320f28c292ea90778bfa55ecfad47d42e93d27d0bae0a10fca34eb9 + sourceBlobDigest: sha256:339446a3ddb92ef648b5881135a44848f08cec15d2c4785d1000884ec29bd801 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 03f9d690..8b3c708e 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -62,7 +62,7 @@ async function run() { const { value: result } = res; // Handle the result - console.log(result) + console.log(result); } run(); diff --git a/RELEASES.md b/RELEASES.md index 53d6623e..f75bac6a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -464,4 +464,14 @@ Based on: ### Generated - [typescript v0.17.1] . ### Releases -- [NPM v0.17.1] https://www.npmjs.com/package/unstructured-client/v/0.17.1 - . \ No newline at end of file +- [NPM v0.17.1] https://www.npmjs.com/package/unstructured-client/v/0.17.1 - . + +## 2024-09-26 00:26:37 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.402.14 (2.422.22) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.17.2] . +### Releases +- [NPM v0.17.2] https://www.npmjs.com/package/unstructured-client/v/0.17.2 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 573d1060..63fab48c 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 { ChunkingStrategy, Strategy } 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 chunkingStrategy: 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 { ChunkingStrategy, Strategy } 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 chunkingStrategy: ChunkingStrategy.Basic,\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" diff --git a/docs/sdk/models/operations/partitionresponse.md b/docs/sdk/models/operations/partitionresponse.md index d0742b6d..dc2a0ccd 100644 --- a/docs/sdk/models/operations/partitionresponse.md +++ b/docs/sdk/models/operations/partitionresponse.md @@ -23,7 +23,7 @@ let value: PartitionResponse = { }, }, ], - statusCode: 548814, + statusCode: 306, rawResponse: new Response("{\"message\": \"hello world\"}", { headers: { "Content-Type": "application/json" }, }), diff --git a/docs/sdk/models/shared/chunkingstrategy.md b/docs/sdk/models/shared/chunkingstrategy.md index 82ebe5ca..fa7a1f41 100644 --- a/docs/sdk/models/shared/chunkingstrategy.md +++ b/docs/sdk/models/shared/chunkingstrategy.md @@ -5,7 +5,7 @@ ```typescript import { ChunkingStrategy } from "unstructured-client/sdk/models/shared"; -let value: ChunkingStrategy = ChunkingStrategy.ByTitle; +let value: ChunkingStrategy = ChunkingStrategy.Basic; ``` ## Values diff --git a/docs/sdk/models/shared/loc.md b/docs/sdk/models/shared/loc.md index b37ac78a..1e5f6183 100644 --- a/docs/sdk/models/shared/loc.md +++ b/docs/sdk/models/shared/loc.md @@ -5,7 +5,7 @@ ```typescript import { Loc } from "unstructured-client/sdk/models/shared"; -let value: Loc = 544883; +let value: Loc = 423655; ``` ## Supported Types diff --git a/docs/sdk/models/shared/validationerror.md b/docs/sdk/models/shared/validationerror.md index 5eb730db..0703cb4e 100644 --- a/docs/sdk/models/shared/validationerror.md +++ b/docs/sdk/models/shared/validationerror.md @@ -7,7 +7,7 @@ import { ValidationError } from "unstructured-client/sdk/models/shared"; let value: ValidationError = { loc: [ - "", + 437587, ], msg: "", type: "", diff --git a/gen.yaml b/gen.yaml index 9451ea0a..85be5b35 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.17.1 + version: 0.17.2 additionalDependencies: dependencies: async: ^3.2.5 diff --git a/jsr.json b/jsr.json index 289c2058..a6ed9e13 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "unstructured-client", - "version": "0.17.1", + "version": "0.17.2", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index d4703b0b..019d34b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "unstructured-client", - "version": "0.17.1", + "version": "0.17.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "unstructured-client", - "version": "0.17.1", + "version": "0.17.2", "dependencies": { "async": "^3.2.5", "pdf-lib": "^1.17.1" diff --git a/package.json b/package.json index b42baf53..707955ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstructured-client", - "version": "0.17.1", + "version": "0.17.2", "author": "Unstructured", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index a3b2f494..3de318b3 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -68,9 +68,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "1.0.48", - sdkVersion: "0.17.1", - genVersion: "2.421.3", + openapiDocVersion: "1.0.50", + sdkVersion: "0.17.2", + genVersion: "2.422.22", userAgent: - "speakeasy-sdk/typescript 0.17.1 2.421.3 1.0.48 unstructured-client", + "speakeasy-sdk/typescript 0.17.2 2.422.22 1.0.50 unstructured-client", } as const;