Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.4
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 29, 2023
1 parent 3ef5fbb commit 9fd96ed
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 42 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ sdk.general.partition({
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
files: [
"+WmI5Q)|yy" as bytes <<<>>>,
],
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,14 @@ Based on:
### Generated
- [typescript v0.3.1] .
### Releases
- [NPM v0.3.1] https://www.npmjs.com/package/unstructured-client/v/0.3.1 - .
- [NPM v0.3.1] https://www.npmjs.com/package/unstructured-client/v/0.3.1 - .

## 2023-09-29 16:41:46
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.91.4 (2.139.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.2] .
### Releases
- [NPM v0.3.2] https://www.npmjs.com/package/unstructured-client/v/0.3.2 - .
7 changes: 3 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ sdk.general.partition({
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
files: [
"+WmI5Q)|yy" as bytes <<<>>>,
],
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
Expand Down
2 changes: 1 addition & 1 deletion docs/models/shared/partitionparameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| `combineUnderNChars` | *number* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | 500 |
| `coordinates` | *boolean* | :heavy_minus_sign: | If true, return coordinates for each element. Default: false | |
| `encoding` | *string* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | utf-8 |
| `files` | [PartitionParametersFiles](../../models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
| `files` | *Uint8Array*[] | :heavy_minus_sign: | The file(s) to extract | |
| `gzUncompressedContentType` | *string* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
| `hiResModelName` | *string* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
| `includePageBreaks` | *boolean* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
Expand Down
9 changes: 0 additions & 9 deletions docs/models/shared/partitionparametersfiles.md

This file was deleted.

7 changes: 3 additions & 4 deletions docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ sdk.general.partition({
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
content: "+WmI5Q)|yy" as bytes <<<>>>,
files: "um",
},
files: [
"+WmI5Q)|yy" as bytes <<<>>>,
],
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
Expand Down
1 change: 0 additions & 1 deletion files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ USAGE.md
docs/models/operations/partitionresponse.md
docs/models/errors/httpvalidationerror.md
docs/models/errors/validationerror.md
docs/models/shared/partitionparametersfiles.md
docs/models/shared/partitionparameters.md
docs/models/shared/security.md
docs/sdks/unstructuredclient/README.md
Expand Down
4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
configVersion: 1.0.0
management:
docChecksum: db54a5de41d76029233468ef472c9676
docChecksum: c2feacd7346b5a78a2db180c2c404fe2
docVersion: 0.0.1
speakeasyVersion: 1.91.4
generationVersion: 2.139.2
Expand All @@ -22,7 +22,7 @@ features:
retries: 2.82.0
serverIDs: 2.81.1
typescript:
version: 0.3.1
version: 0.3.2
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.3.1",
"version": "0.3.2",
"author": "Unstructured",
"scripts": {
"prepare": "tsc --build"
Expand Down
14 changes: 3 additions & 11 deletions src/sdk/models/shared/partitionparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@

import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils";

export class PartitionParametersFiles extends SpeakeasyBase {
@SpeakeasyMetadata({ data: "multipart_form, content=true" })
content: Uint8Array;

@SpeakeasyMetadata({ data: "multipart_form, name=files" })
files: string;
}

export class PartitionParameters extends SpeakeasyBase {
/**
* Use one of the supported strategies to chunk the returned elements. Currently supports: by_title
Expand All @@ -38,10 +30,10 @@ export class PartitionParameters extends SpeakeasyBase {
encoding?: string;

/**
* The file to extract
* The file(s) to extract
*/
@SpeakeasyMetadata({ data: "multipart_form, file=true" })
files?: PartitionParametersFiles;
@SpeakeasyMetadata({ data: "multipart_form, name=files;json=true" })
files?: Uint8Array[];

/**
* If file is gzipped, use this content type after unzipping
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export class SDKConfiguration {
serverDefaults: any;
language = "typescript";
openapiDocVersion = "0.0.1";
sdkVersion = "0.3.1";
sdkVersion = "0.3.2";
genVersion = "2.139.2";
userAgent = "speakeasy-sdk/typescript 0.3.1 2.139.2 0.0.1 unstructured-client";
userAgent = "speakeasy-sdk/typescript 0.3.2 2.139.2 0.0.1 unstructured-client";
retryConfig?: utils.RetryConfig;
public constructor(init?: Partial<SDKConfiguration>) {
Object.assign(this, init);
Expand Down

0 comments on commit 9fd96ed

Please sign in to comment.