Skip to content

Commit faf6090

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.3
1 parent fd12b0f commit faf6090

File tree

10 files changed

+96
-18
lines changed

10 files changed

+96
-18
lines changed

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,75 @@ sdk.general.partition({
7575

7676
<!-- End Dev Containers -->
7777

78+
79+
80+
## SDK Example Usage
81+
<!-- Start SDK Example Usage -->
82+
83+
84+
```typescript
85+
import { UnstructuredClient } from "unstructured-client";
86+
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
87+
88+
const sdk = new UnstructuredClient({
89+
security: {
90+
apiKeyAuth: "YOUR_API_KEY",
91+
},
92+
});
93+
94+
sdk.general.partition({
95+
coordinates: false,
96+
encoding: "utf-8",
97+
files: {
98+
content: "+WmI5Q)|yy" as bytes <<<>>>,
99+
files: "um",
100+
},
101+
gzUncompressedContentType: "application/pdf",
102+
hiResModelName: "yolox",
103+
includePageBreaks: false,
104+
ocrLanguages: [
105+
"eng",
106+
],
107+
outputFormat: "application/json",
108+
pdfInferTableStructure: false,
109+
skipInferTableTypes: [
110+
"pdf",
111+
],
112+
strategy: "hi_res",
113+
xmlKeepTags: false,
114+
}).then((res: PartitionResponse) => {
115+
if (res.statusCode == 200) {
116+
// handle response
117+
}
118+
});
119+
```
120+
<!-- End SDK Example Usage -->
121+
122+
123+
124+
<!-- Start SDK Available Operations -->
125+
## Available Resources and Operations
126+
127+
128+
### [general](docs/sdks/general/README.md)
129+
130+
* [partition](docs/sdks/general/README.md#partition) - Pipeline 1
131+
<!-- End SDK Available Operations -->
132+
133+
134+
135+
<!-- Start Pagination -->
136+
# Pagination
137+
138+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
139+
returned response object will have a `next` method that can be called to pull down the next group of results. If the
140+
return value of `next` is `null`, then there are no more pages to be fetched.
141+
142+
Here's an example of one such pagination call:
143+
144+
145+
<!-- End Pagination -->
146+
78147
<!-- Placeholder for Future Speakeasy SDK Sections -->
79148

80149
### Maturity

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ Based on:
3232
### Generated
3333
- [typescript v0.2.0] .
3434
### Releases
35-
- [NPM v0.2.0] https://www.npmjs.com/package/unstructured-client/v/0.2.0 - .
35+
- [NPM v0.2.0] https://www.npmjs.com/package/unstructured-client/v/0.2.0 - .
36+
37+
## 2023-09-29 00:20:08
38+
### Changes
39+
Based on:
40+
- OpenAPI Doc 0.0.1
41+
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
42+
### Generated
43+
- [typescript v0.3.0] .
44+
### Releases
45+
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ sdk.general.partition({
1515
coordinates: false,
1616
encoding: "utf-8",
1717
files: {
18-
content: "corrupti".encode(),
19-
files: "provident",
18+
content: "+WmI5Q)|yy" as bytes <<<>>>,
19+
files: "um",
2020
},
2121
gzUncompressedContentType: "application/pdf",
2222
hiResModelName: "yolox",

docs/sdks/general/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ sdk.general.partition({
2525
coordinates: false,
2626
encoding: "utf-8",
2727
files: {
28-
content: "unde".encode(),
29-
files: "nulla",
28+
content: "+WmI5Q)|yy" as bytes <<<>>>,
29+
files: "um",
3030
},
3131
gzUncompressedContentType: "application/pdf",
3232
hiResModelName: "yolox",

gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: f332d5b484fbeb4689b0c548694f5a69
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.91.1
6-
generationVersion: 2.130.1
5+
speakeasyVersion: 1.91.3
6+
generationVersion: 2.139.1
77
generation:
88
comments:
99
disableComments: false
@@ -14,7 +14,7 @@ generation:
1414
tagNamespacingDisabled: false
1515
features:
1616
typescript:
17-
core: 2.88.1
17+
core: 2.89.1
1818
examples: 2.81.2
1919
globalSecurity: 2.81.1
2020
globalServerURLs: 2.82.0
@@ -23,7 +23,7 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
typescript:
26-
version: 0.2.0
26+
version: 0.3.0
2727
author: Unstructured
2828
clientServerStatusCodesAsErrors: true
2929
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.2.0",
3+
"version": "0.3.0",
44
"author": "Unstructured",
55
"scripts": {
66
"prepare": "tsc --build"

src/internal/utils/requestbody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function encodeMultipartFormDataFile(formData: FormData, file: any): FormData {
315315
if (mpFormDecoratorName === "" || fileName === "" || content == null) {
316316
throw new Error("invalid multipart/form-data file");
317317
}
318-
formData.append("file", Buffer.from(content), fileName);
318+
formData.append(mpFormDecoratorName, Buffer.from(content), fileName);
319319
return formData;
320320
}
321321

src/sdk/general.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export class General {
5959
};
6060
headers["Accept"] = "application/json";
6161

62-
headers[
63-
"user-agent"
64-
] = `speakeasy-sdk/${this.sdkConfiguration.language} ${this.sdkConfiguration.sdkVersion} ${this.sdkConfiguration.genVersion} ${this.sdkConfiguration.openapiDocVersion}`;
62+
headers["user-agent"] = this.sdkConfiguration.userAgent;
6563

6664
const globalRetryConfig = this.sdkConfiguration.retryConfig;
6765
let retryConfig: any = retries;

src/sdk/sdk.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ export class SDKConfiguration {
5959
serverDefaults: any;
6060
language = "typescript";
6161
openapiDocVersion = "0.0.1";
62-
sdkVersion = "0.2.0";
63-
genVersion = "2.130.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";
6465
retryConfig?: utils.RetryConfig;
6566
public constructor(init?: Partial<SDKConfiguration>) {
6667
Object.assign(this, init);

0 commit comments

Comments
 (0)