Skip to content

Commit f12b10c

Browse files
chore: 🐝 Update SDK - Generate 0.14.0 (#95)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/791654f10a6af06d05b89e154ed521a4> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/e9dee02fb353f3f5e6abeff83171aa5e> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.348.1 (2.380.1) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (4:14) └─┬Servers └──[➕] servers (6:7) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | servers | 1 | 0 | Co-authored-by: speakeasybot <[email protected]>
1 parent fd87cc7 commit f12b10c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+210
-78
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
4-
docChecksum: 3f2fbf3f00965b046a501b0642259d4e
5-
docVersion: 1.0.39
6-
speakeasyVersion: 1.335.0
7-
generationVersion: 2.370.2
8-
releaseVersion: 0.13.0
9-
configChecksum: 42aa478608bdf1332898ea475f2c41ad
4+
docChecksum: 20a563c667f63df94bebac671d008a7e
5+
docVersion: 1.0.41
6+
speakeasyVersion: 1.348.1
7+
generationVersion: 2.380.1
8+
releaseVersion: 0.14.0
9+
configChecksum: 1eced6a53b0d7bdd6ae24458fdda9a4a
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -15,8 +15,9 @@ features:
1515
typescript:
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.5
18-
core: 3.11.6
18+
core: 3.11.11
1919
defaultEnabledRetries: 0.1.0
20+
envVarSecurityUsage: 0.1.0
2021
examples: 2.81.4
2122
globalSecurity: 2.82.9
2223
globalSecurityCallbacks: 0.1.0
@@ -28,7 +29,7 @@ features:
2829
retries: 2.83.0
2930
sdkHooks: 0.1.0
3031
serverIDs: 2.81.2
31-
unions: 2.85.5
32+
unions: 2.85.6
3233
generatedFiles:
3334
- src/sdk/general.ts
3435
- src/sdk/sdk.ts
@@ -40,6 +41,7 @@ generatedFiles:
4041
- src/index.ts
4142
- src/lib/base64.ts
4243
- src/lib/config.ts
44+
- src/lib/dlv.ts
4345
- src/lib/encodings.ts
4446
- src/lib/http.ts
4547
- src/lib/is-plain-object.ts
@@ -85,3 +87,4 @@ generatedFiles:
8587
- src/hooks/hooks.ts
8688
- src/hooks/types.ts
8789
- src/hooks/index.ts
90+
- CONTRIBUTING.md

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.335.0
1+
speakeasyVersion: 1.348.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:1320eaa3fcc76a80f0eb1ae5b1911b76e3bf7027c01415145bfbd6bee3e3f853
6-
sourceBlobDigest: sha256:f079320c7561160783552dcc1331f166de988922dd9bdb108df9625279ca3002
5+
sourceRevisionDigest: sha256:d9a931a50d97bc11347f15100441fb15949c78c4bd1ba40563622fef337f71e4
6+
sourceBlobDigest: sha256:c92c14e9b5efafea512482ea6da6a7f1599b3063b2eb2ad2e8feb76c8016ab62
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:1320eaa3fcc76a80f0eb1ae5b1911b76e3bf7027c01415145bfbd6bee3e3f853
15-
sourceBlobDigest: sha256:f079320c7561160783552dcc1331f166de988922dd9bdb108df9625279ca3002
14+
sourceRevisionDigest: sha256:d9a931a50d97bc11347f15100441fb15949c78c4bd1ba40563622fef337f71e4
15+
sourceBlobDigest: sha256:c92c14e9b5efafea512482ea6da6a7f1599b3063b2eb2ad2e8feb76c8016ab62
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ To change the default retry strategy for a single API call, simply provide a ret
163163
```typescript
164164
import { openAsBlob } from "node:fs";
165165
import { UnstructuredClient } from "unstructured-client";
166-
import { Strategy } from "unstructured-client/sdk/models/shared";
166+
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
167167

168168
const unstructuredClient = new UnstructuredClient({
169169
security: {
@@ -176,7 +176,8 @@ async function run() {
176176
{
177177
partitionParameters: {
178178
files: await openAsBlob("./sample-file"),
179-
strategy: Strategy.Auto,
179+
chunkingStrategy: ChunkingStrategy.ByTitle,
180+
strategy: Strategy.HiRes,
180181
},
181182
},
182183
{
@@ -205,7 +206,7 @@ If you'd like to override the default retry strategy for all operations that sup
205206
```typescript
206207
import { openAsBlob } from "node:fs";
207208
import { UnstructuredClient } from "unstructured-client";
208-
import { Strategy } from "unstructured-client/sdk/models/shared";
209+
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
209210

210211
const unstructuredClient = new UnstructuredClient({
211212
retryConfig: {
@@ -227,7 +228,8 @@ async function run() {
227228
const result = await unstructuredClient.general.partition({
228229
partitionParameters: {
229230
files: await openAsBlob("./sample-file"),
230-
strategy: Strategy.Auto,
231+
chunkingStrategy: ChunkingStrategy.ByTitle,
232+
strategy: Strategy.HiRes,
231233
},
232234
});
233235

@@ -286,7 +288,7 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
286288
```typescript
287289
import { openAsBlob } from "node:fs";
288290
import { UnstructuredClient } from "unstructured-client";
289-
import { Strategy } from "unstructured-client/sdk/models/shared";
291+
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
290292

291293
const unstructuredClient = new UnstructuredClient({
292294
security: {
@@ -298,7 +300,8 @@ async function run() {
298300
const result = await unstructuredClient.general.partition({
299301
partitionParameters: {
300302
files: await openAsBlob("./sample-file"),
301-
strategy: Strategy.Auto,
303+
chunkingStrategy: ChunkingStrategy.ByTitle,
304+
strategy: Strategy.HiRes,
302305
},
303306
});
304307

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,14 @@ Based on:
374374
### Generated
375375
- [typescript v0.13.0] .
376376
### Releases
377-
- [NPM v0.13.0] https://www.npmjs.com/package/unstructured-client/v/0.13.0 - .
377+
- [NPM v0.13.0] https://www.npmjs.com/package/unstructured-client/v/0.13.0 - .
378+
379+
## 2024-07-29 22:19:36
380+
### Changes
381+
Based on:
382+
- OpenAPI Doc
383+
- Speakeasy CLI 1.348.1 (2.380.1) https://github.com/speakeasy-api/speakeasy
384+
### Generated
385+
- [typescript v0.14.0] .
386+
### Releases
387+
- [NPM v0.14.0] https://www.npmjs.com/package/unstructured-client/v/0.14.0 - .

USAGE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
```typescript
33
import { openAsBlob } from "node:fs";
44
import { UnstructuredClient } from "unstructured-client";
5-
import { Strategy } from "unstructured-client/sdk/models/shared";
5+
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
66

77
const unstructuredClient = new UnstructuredClient({
88
security: {
@@ -14,7 +14,8 @@ async function run() {
1414
const result = await unstructuredClient.general.partition({
1515
partitionParameters: {
1616
files: await openAsBlob("./sample-file"),
17-
strategy: Strategy.Auto,
17+
chunkingStrategy: ChunkingStrategy.ByTitle,
18+
strategy: Strategy.HiRes,
1819
},
1920
});
2021

codeSamples.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ actions:
1111
source: |-
1212
import { openAsBlob } from "node:fs";
1313
import { UnstructuredClient } from "unstructured-client";
14-
import { Strategy } from "unstructured-client/sdk/models/shared";
14+
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
1515
1616
const unstructuredClient = new UnstructuredClient({
1717
security: {
@@ -24,6 +24,7 @@ actions:
2424
partitionParameters: {
2525
files: await openAsBlob("./sample-file"),
2626
strategy: Strategy.Auto,
27+
chunkingStrategy: ChunkingStrategy.Basic,
2728
},
2829
});
2930

0 commit comments

Comments
 (0)