Skip to content

Commit 13d2c7f

Browse files
chore: 🐝 Update SDK - Generate 0.15.0 (#103)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/f45c02ea0b888bc564e641cb67a629a0> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/f45203ba77080fa51e1040ecf1c0554b> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.359.1 (2.392.0) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` └─┬Components └─┬partition_parameters └──[➕] properties (274:17) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 1 | 0 | Co-authored-by: speakeasybot <[email protected]>
1 parent 5f6948c commit 13d2c7f

21 files changed

+597
-304
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/funcs
2+
/core.*
13
/esm
24
/dist
35
/.tshy

.speakeasy/gen.lock

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
lockVersion: 2.0.0
22
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
4-
docChecksum: 313cde7d6359c03a54d049d16912ef28
4+
docChecksum: c7313350429cfbfee15e585ae670a003
55
docVersion: 1.0.43
6-
speakeasyVersion: 1.352.2
7-
generationVersion: 2.385.2
8-
releaseVersion: 0.14.3
9-
configChecksum: 24d1b79c19f3f663bcb751438a2b57a1
6+
speakeasyVersion: 1.359.1
7+
generationVersion: 2.392.0
8+
releaseVersion: 0.15.0
9+
configChecksum: 11c1dd5bf35cf3f7dc7bd0742f95d969
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
1313
published: true
1414
features:
1515
typescript:
1616
additionalDependencies: 0.1.0
17-
constsAndDefaults: 0.1.5
18-
core: 3.11.13
17+
constsAndDefaults: 0.1.6
18+
core: 3.13.0
1919
defaultEnabledRetries: 0.1.0
2020
envVarSecurityUsage: 0.1.1
2121
examples: 2.81.4
22-
globalSecurity: 2.82.10
22+
globalSecurity: 2.82.11
2323
globalSecurityCallbacks: 0.1.0
2424
globalServerURLs: 2.82.4
2525
nameOverrides: 2.81.2
@@ -31,20 +31,23 @@ features:
3131
serverIDs: 2.81.2
3232
unions: 2.85.6
3333
generatedFiles:
34+
- src/funcs/generalPartition.ts
3435
- src/sdk/general.ts
3536
- src/sdk/sdk.ts
3637
- .eslintrc.cjs
3738
- .npmignore
3839
- RUNTIMES.md
3940
- jsr.json
4041
- package.json
42+
- src/core.ts
4143
- src/index.ts
4244
- src/lib/base64.ts
4345
- src/lib/config.ts
4446
- src/lib/dlv.ts
4547
- src/lib/encodings.ts
4648
- src/lib/http.ts
4749
- src/lib/is-plain-object.ts
50+
- src/lib/logger.ts
4851
- src/lib/matchers.ts
4952
- src/lib/primitives.ts
5053
- src/lib/retries.ts

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.352.2
1+
speakeasyVersion: 1.359.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
6-
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
5+
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
6+
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
15-
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
14+
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
15+
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ async function run() {
177177
partitionParameters: {
178178
files: await openAsBlob("./sample-file"),
179179
chunkingStrategy: ChunkingStrategy.ByTitle,
180+
splitPdfPageRange: [1, 10],
180181
strategy: Strategy.HiRes,
181182
},
182183
},
@@ -229,6 +230,7 @@ async function run() {
229230
partitionParameters: {
230231
files: await openAsBlob("./sample-file"),
231232
chunkingStrategy: ChunkingStrategy.ByTitle,
233+
splitPdfPageRange: [1, 10],
232234
strategy: Strategy.HiRes,
233235
},
234236
});
@@ -301,6 +303,7 @@ async function run() {
301303
partitionParameters: {
302304
files: await openAsBlob("./sample-file"),
303305
chunkingStrategy: ChunkingStrategy.ByTitle,
306+
splitPdfPageRange: [1, 10],
304307
strategy: Strategy.HiRes,
305308
},
306309
});
@@ -320,6 +323,21 @@ run();
320323
<!-- No Error Handling -->
321324
<!-- No Server Selection -->
322325
326+
<!-- Start Debugging [debug] -->
327+
## Debugging
328+
329+
To log HTTP requests and responses, you can pass a logger that matches `console`'s interface as an SDK option.
330+
331+
> [!WARNING]
332+
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
333+
334+
```typescript
335+
import { UnstructuredClient } from "unstructured-client";
336+
337+
const sdk = new UnstructuredClient({ debugLogger: console });
338+
```
339+
<!-- End Debugging [debug] -->
340+
323341
<!-- Placeholder for Future Speakeasy SDK Sections -->
324342
325343
### Maturity

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,14 @@ Based on:
414414
### Generated
415415
- [typescript v0.14.3] .
416416
### Releases
417-
- [NPM v0.14.3] https://www.npmjs.com/package/unstructured-client/v/0.14.3 - .
417+
- [NPM v0.14.3] https://www.npmjs.com/package/unstructured-client/v/0.14.3 - .
418+
419+
## 2024-08-09 19:22:27
420+
### Changes
421+
Based on:
422+
- OpenAPI Doc
423+
- Speakeasy CLI 1.359.1 (2.392.0) https://github.com/speakeasy-api/speakeasy
424+
### Generated
425+
- [typescript v0.15.0] .
426+
### Releases
427+
- [NPM v0.15.0] https://www.npmjs.com/package/unstructured-client/v/0.15.0 - .

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ async function run() {
1515
partitionParameters: {
1616
files: await openAsBlob("./sample-file"),
1717
chunkingStrategy: ChunkingStrategy.ByTitle,
18+
splitPdfPageRange: [1, 10],
1819
strategy: Strategy.HiRes,
1920
},
2021
});

codeSamples.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ actions:
2525
files: await openAsBlob("./sample-file"),
2626
strategy: Strategy.Auto,
2727
chunkingStrategy: ChunkingStrategy.Basic,
28+
splitPdfPageRange: [
29+
1,
30+
10,
31+
],
2832
},
2933
});
3034

0 commit comments

Comments
 (0)