Skip to content

chore: 🐝 Update SDK - Generate 0.17.1 #112

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
Sep 23, 2024
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
14 changes: 7 additions & 7 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: 07648fa4a81409d493b04f9a0210053a
docChecksum: e1ddcc2cf71c4056b8ea02935f420820
docVersion: 1.0.48
speakeasyVersion: 1.398.0
generationVersion: 2.415.8
releaseVersion: 0.17.0
configChecksum: 2c276110c3d851f4c60673861a0ec379
speakeasyVersion: 1.401.2
generationVersion: 2.421.3
releaseVersion: 0.17.1
configChecksum: 1055fe9a71bdb4cdbbe397b0bc8f8d65
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand All @@ -15,7 +15,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.17.3
core: 3.17.6
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.1
Expand Down Expand Up @@ -109,6 +109,6 @@ examples:
"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"}}]
"422":
application/json: {"detail": "<value>"}
application/json: {"detail": []}
5XX:
application/json: {"detail": "An error occurred"}
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.398.0
speakeasyVersion: 1.401.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:c94b4493c1e49e6f6a922e16c6ba45f067f862adb66542e7bd3355b195a3477e
sourceBlobDigest: sha256:108f49adb0607b20fc4d54949d36599c08c87c2d19e0a40e4bd5a2b91d9ac3e3
sourceRevisionDigest: sha256:a1cab617ff2e6f54400d7a1558b3a9dd86ec53c7db8e716cef2f90926c74798e
sourceBlobDigest: sha256:6b8cb9c93f74eb8c94e57469c73722791d51e77052bd0c4cf168aee14cd05ff3
tags:
- latest
- main
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:c94b4493c1e49e6f6a922e16c6ba45f067f862adb66542e7bd3355b195a3477e
sourceBlobDigest: sha256:108f49adb0607b20fc4d54949d36599c08c87c2d19e0a40e4bd5a2b91d9ac3e3
sourceRevisionDigest: sha256:a1cab617ff2e6f54400d7a1558b3a9dd86ec53c7db8e716cef2f90926c74798e
sourceBlobDigest: sha256:6b8cb9c93f74eb8c94e57469c73722791d51e77052bd0c4cf168aee14cd05ff3
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 @@ -454,4 +454,14 @@ Based on:
### Generated
- [typescript v0.17.0] .
### Releases
- [NPM v0.17.0] https://www.npmjs.com/package/unstructured-client/v/0.17.0 - .
- [NPM v0.17.0] https://www.npmjs.com/package/unstructured-client/v/0.17.0 - .

## 2024-09-23 00:27:28
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.17.1] .
### Releases
- [NPM v0.17.1] https://www.npmjs.com/package/unstructured-client/v/0.17.1 - .
8 changes: 4 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
actions:
- target: $["paths"]["/general/v0/general"]["post"]
update:
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();"
"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();"
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/chunkingstrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { ChunkingStrategy } from "unstructured-client/sdk/models/shared";

let value: ChunkingStrategy = ChunkingStrategy.Basic;
let value: ChunkingStrategy = ChunkingStrategy.ByTitle;
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { Loc } from "unstructured-client/sdk/models/shared";

let value: Loc = 844266;
let value: Loc = 544883;
```

## Supported Types
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/outputformat.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The format of the response. Supported formats are application/json and text/csv.
```typescript
import { OutputFormat } from "unstructured-client/sdk/models/shared";

let value: OutputFormat = OutputFormat.ApplicationJson;
let value: OutputFormat = OutputFormat.TextCsv;
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto.
```typescript
import { Strategy } from "unstructured-client/sdk/models/shared";

let value: Strategy = Strategy.HiRes;
let value: Strategy = Strategy.Auto;
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/validationerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ValidationError } from "unstructured-client/sdk/models/shared";

let value: ValidationError = {
loc: [
857946,
"<value>",
],
msg: "<value>",
type: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.17.0
version: 0.17.1
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.17.0",
"version": "0.17.1",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unstructured-client",
"version": "0.17.0",
"version": "0.17.1",
"author": "Unstructured",
"main": "./index.js",
"sideEffects": false,
Expand Down
Loading
Loading