Skip to content

Commit 3ef5fbb

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.4
1 parent faf6090 commit 3ef5fbb

File tree

10 files changed

+67
-22
lines changed

10 files changed

+67
-22
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ sdk.general.partition({
7979

8080
## SDK Example Usage
8181
<!-- Start SDK Example Usage -->
82-
83-
8482
```typescript
8583
import { UnstructuredClient } from "unstructured-client";
8684
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
@@ -92,6 +90,8 @@ const sdk = new UnstructuredClient({
9290
});
9391

9492
sdk.general.partition({
93+
chunkingStrategy: "by_title",
94+
combineUnderNChars: 500,
9595
coordinates: false,
9696
encoding: "utf-8",
9797
files: {
@@ -101,9 +101,11 @@ sdk.general.partition({
101101
gzUncompressedContentType: "application/pdf",
102102
hiResModelName: "yolox",
103103
includePageBreaks: false,
104-
ocrLanguages: [
104+
languages: [
105105
"eng",
106106
],
107+
multipageSections: false,
108+
newAfterNChars: 1500,
107109
outputFormat: "application/json",
108110
pdfInferTableStructure: false,
109111
skipInferTableTypes: [
@@ -140,8 +142,6 @@ returned response object will have a `next` method that can be called to pull do
140142
return value of `next` is `null`, then there are no more pages to be fetched.
141143

142144
Here's an example of one such pagination call:
143-
144-
145145
<!-- End Pagination -->
146146

147147
<!-- Placeholder for Future Speakeasy SDK Sections -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,14 @@ Based on:
4242
### Generated
4343
- [typescript v0.3.0] .
4444
### Releases
45-
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .
45+
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .
46+
47+
## 2023-09-29 16:24:58
48+
### Changes
49+
Based on:
50+
- OpenAPI Doc 0.0.1
51+
- Speakeasy CLI 1.91.4 (2.139.2) https://github.com/speakeasy-api/speakeasy
52+
### Generated
53+
- [typescript v0.3.1] .
54+
### Releases
55+
- [NPM v0.3.1] https://www.npmjs.com/package/unstructured-client/v/0.3.1 - .

USAGE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const sdk = new UnstructuredClient({
1212
});
1313

1414
sdk.general.partition({
15+
chunkingStrategy: "by_title",
16+
combineUnderNChars: 500,
1517
coordinates: false,
1618
encoding: "utf-8",
1719
files: {
@@ -21,9 +23,11 @@ sdk.general.partition({
2123
gzUncompressedContentType: "application/pdf",
2224
hiResModelName: "yolox",
2325
includePageBreaks: false,
24-
ocrLanguages: [
26+
languages: [
2527
"eng",
2628
],
29+
multipageSections: false,
30+
newAfterNChars: 1500,
2731
outputFormat: "application/json",
2832
pdfInferTableStructure: false,
2933
skipInferTableTypes: [

docs/models/shared/partitionparameters.md

Lines changed: 5 additions & 1 deletion
Large diffs are not rendered by default.

docs/sdks/general/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const sdk = new UnstructuredClient({
2222
});
2323

2424
sdk.general.partition({
25+
chunkingStrategy: "by_title",
26+
combineUnderNChars: 500,
2527
coordinates: false,
2628
encoding: "utf-8",
2729
files: {
@@ -31,9 +33,11 @@ sdk.general.partition({
3133
gzUncompressedContentType: "application/pdf",
3234
hiResModelName: "yolox",
3335
includePageBreaks: false,
34-
ocrLanguages: [
36+
languages: [
3537
"eng",
3638
],
39+
multipageSections: false,
40+
newAfterNChars: 1500,
3741
outputFormat: "application/json",
3842
pdfInferTableStructure: false,
3943
skipInferTableTypes: [

gen.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: f332d5b484fbeb4689b0c548694f5a69
3+
docChecksum: db54a5de41d76029233468ef472c9676
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.91.3
6-
generationVersion: 2.139.1
5+
speakeasyVersion: 1.91.4
6+
generationVersion: 2.139.2
77
generation:
88
comments:
99
disableComments: false
@@ -18,12 +18,11 @@ features:
1818
examples: 2.81.2
1919
globalSecurity: 2.81.1
2020
globalServerURLs: 2.82.0
21-
ignores: 2.81.1
2221
nameOverrides: 2.81.1
2322
retries: 2.82.0
2423
serverIDs: 2.81.1
2524
typescript:
26-
version: 0.3.0
25+
version: 0.3.1
2726
author: Unstructured
2827
clientServerStatusCodesAsErrors: true
2928
maxMethodParams: 0

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unstructured-client",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"author": "Unstructured",
55
"scripts": {
66
"prepare": "tsc --build"

src/sdk/models/shared/partitionparameters.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ export class PartitionParametersFiles extends SpeakeasyBase {
1313
}
1414

1515
export class PartitionParameters extends SpeakeasyBase {
16+
/**
17+
* Use one of the supported strategies to chunk the returned elements. Currently supports: by_title
18+
*/
19+
@SpeakeasyMetadata({ data: "multipart_form, name=chunking_strategy" })
20+
chunkingStrategy?: string;
21+
22+
/**
23+
* If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500
24+
*/
25+
@SpeakeasyMetadata({ data: "multipart_form, name=combine_under_n_chars" })
26+
combineUnderNChars?: number;
27+
1628
/**
1729
* If true, return coordinates for each element. Default: false
1830
*/
@@ -52,8 +64,20 @@ export class PartitionParameters extends SpeakeasyBase {
5264
/**
5365
* The languages present in the document, for use in partitioning and/or OCR
5466
*/
55-
@SpeakeasyMetadata({ data: "multipart_form, name=ocr_languages" })
56-
ocrLanguages?: string[];
67+
@SpeakeasyMetadata({ data: "multipart_form, name=languages" })
68+
languages?: string[];
69+
70+
/**
71+
* If chunking strategy is set, determines if sections can span multiple sections. Default: true
72+
*/
73+
@SpeakeasyMetadata({ data: "multipart_form, name=multipage_sections" })
74+
multipageSections?: boolean;
75+
76+
/**
77+
* If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500
78+
*/
79+
@SpeakeasyMetadata({ data: "multipart_form, name=new_after_n_chars" })
80+
newAfterNChars?: number;
5781

5882
/**
5983
* The format of the response. Supported formats are application/json and text/csv. Default: application/json.

src/sdk/sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ export class SDKConfiguration {
5959
serverDefaults: any;
6060
language = "typescript";
6161
openapiDocVersion = "0.0.1";
62-
sdkVersion = "0.3.0";
63-
genVersion = "2.139.1";
64-
userAgent = "speakeasy-sdk/typescript 0.3.0 2.139.1 0.0.1 unstructured-client";
62+
sdkVersion = "0.3.1";
63+
genVersion = "2.139.2";
64+
userAgent = "speakeasy-sdk/typescript 0.3.1 2.139.2 0.0.1 unstructured-client";
6565
retryConfig?: utils.RetryConfig;
6666
public constructor(init?: Partial<SDKConfiguration>) {
6767
Object.assign(this, init);

0 commit comments

Comments
 (0)