Skip to content

Commit bbf6db9

Browse files
authored
Merge pull request #3 from Unstructured-IO/speakeasy-sdk-regen-1696292422
chore: speakeasy sdk regeneration - Generate
2 parents de8163b + ecd29f8 commit bbf6db9

File tree

11 files changed

+133
-84
lines changed

11 files changed

+133
-84
lines changed

RELEASES.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,44 @@ Based on:
9292
### Generated
9393
- [typescript v0.4.1] .
9494
### Releases
95-
- [NPM v0.4.1] https://www.npmjs.com/package/unstructured-client/v/0.4.1 - .
95+
- [NPM v0.4.1] https://www.npmjs.com/package/unstructured-client/v/0.4.1 - .
96+
97+
## 2023-10-03 00:20:21
98+
### Changes
99+
Based on:
100+
- OpenAPI Doc 0.0.1
101+
- Speakeasy CLI 1.93.1 (2.144.7) https://github.com/speakeasy-api/speakeasy
102+
### Generated
103+
- [typescript v0.4.2] .
104+
### Releases
105+
- [NPM v0.4.2] https://www.npmjs.com/package/unstructured-client/v/0.4.2 - .
106+
107+
## 2023-10-05 00:20:13
108+
### Changes
109+
Based on:
110+
- OpenAPI Doc 0.0.1
111+
- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy
112+
### Generated
113+
- [typescript v0.4.3] .
114+
### Releases
115+
- [NPM v0.4.3] https://www.npmjs.com/package/unstructured-client/v/0.4.3 - .
116+
117+
## 2023-10-07 00:19:38
118+
### Changes
119+
Based on:
120+
- OpenAPI Doc 0.0.1
121+
- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy
122+
### Generated
123+
- [typescript v0.5.0] .
124+
### Releases
125+
- [NPM v0.5.0] https://www.npmjs.com/package/unstructured-client/v/0.5.0 - .
126+
127+
## 2023-10-18 00:20:52
128+
### Changes
129+
Based on:
130+
- OpenAPI Doc 0.0.1
131+
- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy
132+
### Generated
133+
- [typescript v0.5.1] .
134+
### Releases
135+
- [NPM v0.5.1] https://www.npmjs.com/package/unstructured-client/v/0.5.1 - .

USAGE.md

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,44 @@
33

44
```typescript
55
import { UnstructuredClient } from "unstructured-client";
6-
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
76

8-
const sdk = new UnstructuredClient({
9-
security: {
10-
apiKeyAuth: "YOUR_API_KEY",
11-
},
12-
});
7+
(async() => {
8+
const sdk = new UnstructuredClient({
9+
security: {
10+
apiKeyAuth: "YOUR_API_KEY",
11+
},
12+
});
13+
14+
const res = await sdk.general.partition({
15+
chunkingStrategy: "by_title",
16+
combineUnderNChars: 500,
17+
encoding: "utf-8",
18+
files: {
19+
content: "+WmI5Q)|yy" as bytes <<<>>>,
20+
files: "Washington",
21+
},
22+
gzUncompressedContentType: "application/pdf",
23+
hiResModelName: "yolox",
24+
languages: [
25+
"[",
26+
"e",
27+
"n",
28+
"g",
29+
"]",
30+
],
31+
newAfterNChars: 1500,
32+
outputFormat: "application/json",
33+
skipInferTableTypes: [
34+
"p",
35+
"d",
36+
"f",
37+
],
38+
strategy: "hi_res",
39+
});
1340

14-
sdk.general.partition({
15-
chunkingStrategy: "by_title",
16-
combineUnderNChars: 500,
17-
coordinates: false,
18-
encoding: "utf-8",
19-
files: {
20-
content: "+WmI5Q)|yy" as bytes <<<>>>,
21-
files: "um",
22-
},
23-
gzUncompressedContentType: "application/pdf",
24-
hiResModelName: "yolox",
25-
includePageBreaks: false,
26-
languages: [
27-
"eng",
28-
],
29-
multipageSections: false,
30-
newAfterNChars: 1500,
31-
outputFormat: "application/json",
32-
pdfInferTableStructure: false,
33-
skipInferTableTypes: [
34-
"pdf",
35-
],
36-
strategy: "hi_res",
37-
xmlKeepTags: false,
38-
}).then((res: PartitionResponse) => {
3941
if (res.statusCode == 200) {
4042
// handle response
4143
}
42-
});
44+
})();
4345
```
4446
<!-- End SDK Example Usage -->

docs/models/shared/partitionparameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
| `gzUncompressedContentType` | *string* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
1414
| `hiResModelName` | *string* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
1515
| `includePageBreaks` | *boolean* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
16-
| `languages` | *string*[] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | |
16+
| `languages` | *string*[] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | [eng] |
1717
| `multipageSections` | *boolean* | :heavy_minus_sign: | If chunking strategy is set, determines if sections can span multiple sections. Default: true | |
1818
| `newAfterNChars` | *number* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500 | 1500 |
1919
| `outputFormat` | *string* | :heavy_minus_sign: | The format of the response. Supported formats are application/json and text/csv. Default: application/json. | application/json |
2020
| `pdfInferTableStructure` | *boolean* | :heavy_minus_sign: | If True and strategy=hi_res, any Table Elements extracted from a PDF will include an additional metadata field, 'text_as_html', where the value (string) is a just a transformation of the data into an HTML <table>. | |
21-
| `skipInferTableTypes` | *string*[] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | |
21+
| `skipInferTableTypes` | *string*[] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | pdf |
2222
| `strategy` | *string* | :heavy_minus_sign: | The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. Default: auto | hi_res |
2323
| `xmlKeepTags` | *boolean* | :heavy_minus_sign: | If True, will retain the XML tags in the output. Otherwise it will simply extract the text from within the tags. Only applies to partition_xml. | |

docs/sdks/general/README.md

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,45 @@ Pipeline 1
1313

1414
```typescript
1515
import { UnstructuredClient } from "unstructured-client";
16-
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
1716

18-
const sdk = new UnstructuredClient({
19-
security: {
20-
apiKeyAuth: "YOUR_API_KEY",
21-
},
22-
});
17+
(async() => {
18+
const sdk = new UnstructuredClient({
19+
security: {
20+
apiKeyAuth: "YOUR_API_KEY",
21+
},
22+
});
23+
24+
const res = await sdk.general.partition({
25+
chunkingStrategy: "by_title",
26+
combineUnderNChars: 500,
27+
encoding: "utf-8",
28+
files: {
29+
content: "+WmI5Q)|yy" as bytes <<<>>>,
30+
files: "Washington",
31+
},
32+
gzUncompressedContentType: "application/pdf",
33+
hiResModelName: "yolox",
34+
languages: [
35+
"[",
36+
"e",
37+
"n",
38+
"g",
39+
"]",
40+
],
41+
newAfterNChars: 1500,
42+
outputFormat: "application/json",
43+
skipInferTableTypes: [
44+
"p",
45+
"d",
46+
"f",
47+
],
48+
strategy: "hi_res",
49+
});
2350

24-
sdk.general.partition({
25-
chunkingStrategy: "by_title",
26-
combineUnderNChars: 500,
27-
coordinates: false,
28-
encoding: "utf-8",
29-
files: {
30-
content: "+WmI5Q)|yy" as bytes <<<>>>,
31-
files: "um",
32-
},
33-
gzUncompressedContentType: "application/pdf",
34-
hiResModelName: "yolox",
35-
includePageBreaks: false,
36-
languages: [
37-
"eng",
38-
],
39-
multipageSections: false,
40-
newAfterNChars: 1500,
41-
outputFormat: "application/json",
42-
pdfInferTableStructure: false,
43-
skipInferTableTypes: [
44-
"pdf",
45-
],
46-
strategy: "hi_res",
47-
xmlKeepTags: false,
48-
}).then((res: PartitionResponse) => {
4951
if (res.statusCode == 200) {
5052
// handle response
5153
}
52-
});
54+
})();
5355
```
5456

5557
### Parameters

gen.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 25324f1821b1070aa4a416ec8ddca590
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.92.3
6-
generationVersion: 2.143.2
5+
speakeasyVersion: 1.101.0
6+
generationVersion: 2.161.0
77
generation:
88
comments:
99
disableComments: false
@@ -14,16 +14,17 @@ generation:
1414
tagNamespacingDisabled: false
1515
features:
1616
typescript:
17-
core: 2.90.1
18-
examples: 2.81.2
19-
globalSecurity: 2.81.1
17+
core: 2.90.4
18+
examples: 2.81.3
19+
globalSecurity: 2.82.0
2020
globalServerURLs: 2.82.0
2121
nameOverrides: 2.81.1
22-
retries: 2.82.0
22+
retries: 2.82.1
2323
serverIDs: 2.81.1
2424
typescript:
25-
version: 0.4.1
25+
version: 0.5.1
2626
author: Unstructured
2727
clientServerStatusCodesAsErrors: true
28+
flattenGlobalSecurity: false
2829
maxMethodParams: 0
2930
packageName: unstructured-client

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
preset: "ts-jest",
33
testEnvironment: "node",
4-
testPathIgnorePatterns: ["<rootDir>/__tests__/helpers.ts"],
4+
testPathIgnorePatterns: ["<rootDir>/__tests__/helpers.ts", "<rootDir>/__tests__/common_helpers.ts"],
55
};

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.

0 commit comments

Comments
 (0)