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 faf6090 commit 3ef5fbb
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 22 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ sdk.general.partition({

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


```typescript
import { UnstructuredClient } from "unstructured-client";
import { PartitionResponse } from "unstructured-client/dist/sdk/models/operations";
Expand All @@ -92,6 +90,8 @@ const sdk = new UnstructuredClient({
});

sdk.general.partition({
chunkingStrategy: "by_title",
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
Expand All @@ -101,9 +101,11 @@ sdk.general.partition({
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
ocrLanguages: [
languages: [
"eng",
],
multipageSections: false,
newAfterNChars: 1500,
outputFormat: "application/json",
pdfInferTableStructure: false,
skipInferTableTypes: [
Expand Down Expand Up @@ -140,8 +142,6 @@ returned response object will have a `next` method that can be called to pull do
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 -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ Based on:
### Generated
- [typescript v0.3.0] .
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .
- [NPM v0.3.0] https://www.npmjs.com/package/unstructured-client/v/0.3.0 - .

## 2023-09-29 16:24:58
### 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.1] .
### Releases
- [NPM v0.3.1] https://www.npmjs.com/package/unstructured-client/v/0.3.1 - .
6 changes: 5 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const sdk = new UnstructuredClient({
});

sdk.general.partition({
chunkingStrategy: "by_title",
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
Expand All @@ -21,9 +23,11 @@ sdk.general.partition({
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
ocrLanguages: [
languages: [
"eng",
],
multipageSections: false,
newAfterNChars: 1500,
outputFormat: "application/json",
pdfInferTableStructure: false,
skipInferTableTypes: [
Expand Down
6 changes: 5 additions & 1 deletion docs/models/shared/partitionparameters.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const sdk = new UnstructuredClient({
});

sdk.general.partition({
chunkingStrategy: "by_title",
combineUnderNChars: 500,
coordinates: false,
encoding: "utf-8",
files: {
Expand All @@ -31,9 +33,11 @@ sdk.general.partition({
gzUncompressedContentType: "application/pdf",
hiResModelName: "yolox",
includePageBreaks: false,
ocrLanguages: [
languages: [
"eng",
],
multipageSections: false,
newAfterNChars: 1500,
outputFormat: "application/json",
pdfInferTableStructure: false,
skipInferTableTypes: [
Expand Down
9 changes: 4 additions & 5 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
configVersion: 1.0.0
management:
docChecksum: f332d5b484fbeb4689b0c548694f5a69
docChecksum: db54a5de41d76029233468ef472c9676
docVersion: 0.0.1
speakeasyVersion: 1.91.3
generationVersion: 2.139.1
speakeasyVersion: 1.91.4
generationVersion: 2.139.2
generation:
comments:
disableComments: false
Expand All @@ -18,12 +18,11 @@ features:
examples: 2.81.2
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
ignores: 2.81.1
nameOverrides: 2.81.1
retries: 2.82.0
serverIDs: 2.81.1
typescript:
version: 0.3.0
version: 0.3.1
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.0",
"version": "0.3.1",
"author": "Unstructured",
"scripts": {
"prepare": "tsc --build"
Expand Down
28 changes: 26 additions & 2 deletions src/sdk/models/shared/partitionparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ export class PartitionParametersFiles extends SpeakeasyBase {
}

export class PartitionParameters extends SpeakeasyBase {
/**
* Use one of the supported strategies to chunk the returned elements. Currently supports: by_title
*/
@SpeakeasyMetadata({ data: "multipart_form, name=chunking_strategy" })
chunkingStrategy?: string;

/**
* If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500
*/
@SpeakeasyMetadata({ data: "multipart_form, name=combine_under_n_chars" })
combineUnderNChars?: number;

/**
* If true, return coordinates for each element. Default: false
*/
Expand Down Expand Up @@ -52,8 +64,20 @@ export class PartitionParameters extends SpeakeasyBase {
/**
* The languages present in the document, for use in partitioning and/or OCR
*/
@SpeakeasyMetadata({ data: "multipart_form, name=ocr_languages" })
ocrLanguages?: string[];
@SpeakeasyMetadata({ data: "multipart_form, name=languages" })
languages?: string[];

/**
* If chunking strategy is set, determines if sections can span multiple sections. Default: true
*/
@SpeakeasyMetadata({ data: "multipart_form, name=multipage_sections" })
multipageSections?: boolean;

/**
* If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500
*/
@SpeakeasyMetadata({ data: "multipart_form, name=new_after_n_chars" })
newAfterNChars?: number;

/**
* The format of the response. Supported formats are application/json and text/csv. Default: application/json.
Expand Down
6 changes: 3 additions & 3 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.0";
genVersion = "2.139.1";
userAgent = "speakeasy-sdk/typescript 0.3.0 2.139.1 0.0.1 unstructured-client";
sdkVersion = "0.3.1";
genVersion = "2.139.2";
userAgent = "speakeasy-sdk/typescript 0.3.1 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 3ef5fbb

Please sign in to comment.