Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 29, 2023
1 parent fd12b0f commit faf6090
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 18 deletions.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,75 @@ sdk.general.partition({

<!-- End Dev Containers -->



## SDK Example Usage
<!-- Start SDK Example Usage -->


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

const sdk = new UnstructuredClient({
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});

sdk.general.partition({
coordinates: false,
encoding: "utf-8",
files: {
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
ocrLanguages: [
"eng",
],
outputFormat: "application/json",
pdfInferTableStructure: false,
skipInferTableTypes: [
"pdf",
],
strategy: "hi_res",
xmlKeepTags: false,
}).then((res: PartitionResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```
<!-- End SDK Example Usage -->



<!-- Start SDK Available Operations -->
## Available Resources and Operations


### [general](docs/sdks/general/README.md)

* [partition](docs/sdks/general/README.md#partition) - Pipeline 1
<!-- End SDK Available Operations -->



<!-- Start Pagination -->
# Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
returned response object will have a `next` method that can be called to pull down the next group of results. If the
return value of `next` is `null`, then there are no more pages to be fetched.

Here's an example of one such pagination call:


<!-- End Pagination -->

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

### Maturity
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ Based on:
### Generated
- [typescript v0.2.0] .
### Releases
- [NPM v0.2.0] https://www.npmjs.com/package/unstructured-client/v/0.2.0 - .
- [NPM v0.2.0] https://www.npmjs.com/package/unstructured-client/v/0.2.0 - .

## 2023-09-29 00:20:08
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0] .
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ sdk.general.partition({
coordinates: false,
encoding: "utf-8",
files: {
content: "corrupti".encode(),
files: "provident",
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ sdk.general.partition({
coordinates: false,
encoding: "utf-8",
files: {
content: "unde".encode(),
files: "nulla",
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
Expand Down
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: f332d5b484fbeb4689b0c548694f5a69
docVersion: 0.0.1
speakeasyVersion: 1.91.1
generationVersion: 2.130.1
speakeasyVersion: 1.91.3
generationVersion: 2.139.1
generation:
comments:
disableComments: false
Expand All @@ -14,7 +14,7 @@ generation:
tagNamespacingDisabled: false
features:
typescript:
core: 2.88.1
core: 2.89.1
examples: 2.81.2
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
Expand All @@ -23,7 +23,7 @@ features:
retries: 2.82.0
serverIDs: 2.81.1
typescript:
version: 0.2.0
version: 0.3.0
author: Unstructured
clientServerStatusCodesAsErrors: true
maxMethodParams: 0
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unstructured-client",
"version": "0.2.0",
"version": "0.3.0",
"author": "Unstructured",
"scripts": {
"prepare": "tsc --build"
Expand Down
2 changes: 1 addition & 1 deletion src/internal/utils/requestbody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function encodeMultipartFormDataFile(formData: FormData, file: any): FormData {
if (mpFormDecoratorName === "" || fileName === "" || content == null) {
throw new Error("invalid multipart/form-data file");
}
formData.append("file", Buffer.from(content), fileName);
formData.append(mpFormDecoratorName, Buffer.from(content), fileName);
return formData;
}

Expand Down
4 changes: 1 addition & 3 deletions src/sdk/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export class General {
};
headers["Accept"] = "application/json";

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

const globalRetryConfig = this.sdkConfiguration.retryConfig;
let retryConfig: any = retries;
Expand Down
5 changes: 3 additions & 2 deletions src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export class SDKConfiguration {
serverDefaults: any;
language = "typescript";
openapiDocVersion = "0.0.1";
sdkVersion = "0.2.0";
genVersion = "2.130.1";
sdkVersion = "0.3.0";
genVersion = "2.139.1";
userAgent = "speakeasy-sdk/typescript 0.3.0 2.139.1 0.0.1 unstructured-client";
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Object.assign(this, init);
Expand Down

0 comments on commit faf6090

Please sign in to comment.