Skip to content

Commit 7daed8f

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.90.0
1 parent a76e35e commit 7daed8f

File tree

9 files changed

+95
-17
lines changed

9 files changed

+95
-17
lines changed

README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,77 @@ sdk.general.partition({
7373
```
7474

7575
<!-- Start Dev Containers -->
76+
7677
<!-- End Dev Containers -->
78+
79+
80+
## SDK Example Usage
81+
<!-- Start SDK Example Usage -->
82+
83+
84+
```typescript
85+
import { Unstructured } from "unstructured-client";
86+
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
87+
88+
const sdk = new Unstructured({
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: "distinctio".encode(),
99+
files: "quibusdam",
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+
77147
<!-- Placeholder for Future Speakeasy SDK Sections -->
78148

79149
### Maturity

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ Based on:
1414
- OpenAPI Doc 0.0.1
1515
- Speakeasy CLI 1.89.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
1616
### Generated
17-
- [typescript v0.1.1] .
17+
- [typescript v0.1.1] .
18+
19+
## 2023-09-22 18:07:44
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc 0.0.1
23+
- Speakeasy CLI 1.90.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
24+
### Generated
25+
- [typescript v0.1.2] .

docs/models/operations/partitionresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
88
| `contentType` | *string* | :heavy_check_mark: | N/A |
9+
| `elements` | *any*[] | :heavy_minus_sign: | Successful Response |
910
| `statusCode` | *number* | :heavy_check_mark: | N/A |
10-
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | N/A |
11-
| `partition200ApplicationJSONAny` | *any* | :heavy_minus_sign: | Successful Response |
11+
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | N/A |

gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: cc03d89cb6fb271665ed6c9eff312ff0
3+
docChecksum: f332d5b484fbeb4689b0c548694f5a69
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.89.0
5+
speakeasyVersion: 1.90.0
66
generationVersion: 2.125.1
77
generation:
88
comments:
@@ -23,7 +23,7 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
typescript:
26-
version: 0.1.1
26+
version: 0.1.2
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.1.1",
3+
"version": "0.1.2",
44
"author": "Unstructured",
55
"scripts": {
66
"prepare": "tsc --build"

src/sdk/general.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class General {
103103
switch (true) {
104104
case httpRes?.status == 200:
105105
if (utils.matchContentType(contentType, `application/json`)) {
106-
res.partition200ApplicationJSONAny = JSON.parse(decodedRes);
106+
res.elements = utils.objectToClass(JSON.parse(decodedRes));
107107
} else {
108108
throw new errors.SDKError(
109109
"unknown content-type received: " + contentType,

src/sdk/models/operations/partition.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export class PartitionResponse extends SpeakeasyBase {
99
@SpeakeasyMetadata()
1010
contentType: string;
1111

12+
/**
13+
* Successful Response
14+
*/
1215
@SpeakeasyMetadata()
13-
statusCode: number;
16+
elements?: any[];
1417

1518
@SpeakeasyMetadata()
16-
rawResponse?: AxiosResponse;
19+
statusCode: number;
1720

18-
/**
19-
* Successful Response
20-
*/
2121
@SpeakeasyMetadata()
22-
partition200ApplicationJSONAny?: any;
22+
rawResponse?: AxiosResponse;
2323
}

src/sdk/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class SDKConfiguration {
5959
serverDefaults: any;
6060
language = "typescript";
6161
openapiDocVersion = "0.0.1";
62-
sdkVersion = "0.1.1";
62+
sdkVersion = "0.1.2";
6363
genVersion = "2.125.1";
6464
retryConfig?: utils.RetryConfig;
6565
public constructor(init?: Partial<SDKConfiguration>) {

0 commit comments

Comments
 (0)