Skip to content
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
18 changes: 9 additions & 9 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: f2a95da32ec2c53d1f83bd13ad725334
docVersion: 1.0.78
speakeasyVersion: 1.509.0
generationVersion: 2.539.0
releaseVersion: 0.21.0
configChecksum: 13f5e8bad8597e9ba62b12b6ffeed9c5
docChecksum: 2e7f129641ad96d49fcda2ceb173d43c
docVersion: 1.0.81
speakeasyVersion: 1.517.3
generationVersion: 2.548.6
releaseVersion: 0.21.1
configChecksum: e65806695f558e569e7327b62f146277
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.3
core: 3.21.4
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
Expand Down Expand Up @@ -49,11 +49,11 @@ generatedFiles:
- docs/sdk/models/shared/loc.md
- docs/sdk/models/shared/outputformat.md
- docs/sdk/models/shared/partitionparameters.md
- docs/sdk/models/shared/partitionparametersschemasstrategy.md
- docs/sdk/models/shared/partitionparametersstrategy.md
- docs/sdk/models/shared/security.md
- docs/sdk/models/shared/strategy.md
- docs/sdk/models/shared/validationerror.md
- docs/sdk/models/shared/vlmmodel.md
- docs/sdk/models/shared/vlmmodelprovider.md
- docs/sdks/general/README.md
- docs/sdks/unstructuredclient/README.md
- eslint.config.mjs
Expand Down
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.509.0
speakeasyVersion: 1.517.3
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
sourceRevisionDigest: sha256:5c2f4c4260daeae651dff81c9ec543cf04f8652ee4731c54363766ad6101cb9a
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
tags:
- latest
- speakeasy-sdk-regen-1741024400
- 1.0.78
- speakeasy-sdk-regen-1741912135
- 1.0.81
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:ab1dc784837828b31a8a2e2a171f359c58bca0948f806d83225045c14421689b
sourceBlobDigest: sha256:13042ba05dc2acf87d4a80c13c6e59d290f9dd0564de710759b0dced2b171f01
sourceRevisionDigest: sha256:5c2f4c4260daeae651dff81c9ec543cf04f8652ee4731c54363766ad6101cb9a
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
codeSamplesNamespace: my-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:bd453feade54d360a88a820a9854fa64c6be4abc145518455742ae1d1591961b
codeSamplesRevisionDigest: sha256:3091e64d53d2b0729ef230c5abcccf9f7fe0058c0b30ee15342eb55047902e18
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
6 changes: 3 additions & 3 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { openAsBlob } from "node:fs";
import { UnstructuredClientCore } from "unstructured-client/core.js";
import { generalPartition } from "unstructured-client/funcs/generalPartition.js";
import { SDKValidationError } from "unstructured-client/sdk/models/errors/sdkvalidationerror.js";
import { PartitionParametersSchemasStrategy, PartitionParametersStrategy } from "unstructured-client/sdk/models/shared";
import { VLMModel, VLMModelProvider } from "unstructured-client/sdk/models/shared";

// Use `UnstructuredClientCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -38,8 +38,8 @@ async function run() {
1,
10,
],
vlmModel: PartitionParametersStrategy.Gpt4o,
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
vlmModel: VLMModel.Gpt4o,
vlmModelProvider: VLMModelProvider.Openai,
},
});

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ To change the default retry strategy for a single API call, simply provide a ret
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import {
PartitionParametersSchemasStrategy,
PartitionParametersStrategy,
VLMModel,
VLMModelProvider,
} from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient();
Expand All @@ -171,8 +171,8 @@ async function run() {
1,
10,
],
vlmModel: PartitionParametersStrategy.Gpt4o,
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
vlmModel: VLMModel.Gpt4o,
vlmModelProvider: VLMModelProvider.Openai,
},
}, {
retries: {
Expand Down Expand Up @@ -200,8 +200,8 @@ If you'd like to override the default retry strategy for all operations that sup
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import {
PartitionParametersSchemasStrategy,
PartitionParametersStrategy,
VLMModel,
VLMModelProvider,
} from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
Expand All @@ -226,8 +226,8 @@ async function run() {
1,
10,
],
vlmModel: PartitionParametersStrategy.Gpt4o,
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
vlmModel: VLMModel.Gpt4o,
vlmModelProvider: VLMModelProvider.Openai,
},
});

Expand Down Expand Up @@ -328,8 +328,8 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import {
PartitionParametersSchemasStrategy,
PartitionParametersStrategy,
VLMModel,
VLMModelProvider,
} from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient();
Expand All @@ -343,8 +343,8 @@ async function run() {
1,
10,
],
vlmModel: PartitionParametersStrategy.Gpt4o,
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
vlmModel: VLMModel.Gpt4o,
vlmModelProvider: VLMModelProvider.Openai,
},
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,4 +534,14 @@ Based on:
### Generated
- [typescript v0.21.0] .
### Releases
- [NPM v0.21.0] https://www.npmjs.com/package/unstructured-client/v/0.21.0 - .
- [NPM v0.21.0] https://www.npmjs.com/package/unstructured-client/v/0.21.0 - .

## 2025-03-14 00:28:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.517.3 (2.548.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.21.1] .
### Releases
- [NPM v0.21.1] https://www.npmjs.com/package/unstructured-client/v/0.21.1 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import {
PartitionParametersSchemasStrategy,
PartitionParametersStrategy,
VLMModel,
VLMModelProvider,
} from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient();
Expand All @@ -18,8 +18,8 @@ async function run() {
1,
10,
],
vlmModel: PartitionParametersStrategy.Gpt4o,
vlmModelProvider: PartitionParametersSchemasStrategy.Openai,
vlmModel: VLMModel.Gpt4o,
vlmModelProvider: VLMModelProvider.Openai,
},
});

Expand Down
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 { PartitionParametersSchemasStrategy, PartitionParametersStrategy } 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: PartitionParametersStrategy.Openai,\n vlmModel: PartitionParametersSchemasStrategy.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: \"basic\",\n splitPdfPageRange: [\n 1,\n 10,\n ],\n },\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
Loading