Skip to content

chore: 🐝 Update SDK - Generate 0.14.3 #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
management:
docChecksum: 5e578870a27407577332f022decd7f44
docVersion: 1.0.42
speakeasyVersion: 1.352.1
generationVersion: 2.385.1
releaseVersion: 0.14.2
configChecksum: 3543fd0ecf30aa45d124e1680e4dba21
docChecksum: 313cde7d6359c03a54d049d16912ef28
docVersion: 1.0.43
speakeasyVersion: 1.352.2
generationVersion: 2.385.2
releaseVersion: 0.14.3
configChecksum: 24d1b79c19f3f663bcb751438a2b57a1
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand All @@ -19,7 +19,7 @@ features:
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
examples: 2.81.4
globalSecurity: 2.82.9
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.4
nameOverrides: 2.81.2
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.352.1
speakeasyVersion: 1.352.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:5986bbcf35f9a55e65e68a3d8447a36dbc67b1c2b7aff3f999fe0e993ebc8b5e
sourceBlobDigest: sha256:5f3f1a852166fb6d5324aea023fd178fda902671e8294ab660c6c32458b6abc5
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
tags:
- latest
- main
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:5986bbcf35f9a55e65e68a3d8447a36dbc67b1c2b7aff3f999fe0e993ebc8b5e
sourceBlobDigest: sha256:5f3f1a852166fb6d5324aea023fd178fda902671e8294ab660c6c32458b6abc5
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,14 @@ Based on:
### Generated
- [typescript v0.14.2] .
### Releases
- [NPM v0.14.2] https://www.npmjs.com/package/unstructured-client/v/0.14.2 - .
- [NPM v0.14.2] https://www.npmjs.com/package/unstructured-client/v/0.14.2 - .

## 2024-08-06 00:40:28
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.14.3] .
### Releases
- [NPM v0.14.3] https://www.npmjs.com/package/unstructured-client/v/0.14.3 - .
1 change: 1 addition & 0 deletions docs/sdk/models/shared/partitionparameters.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.14.2
version: 0.14.3
additionalDependencies:
dependencies:
async: ^3.2.5
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "unstructured-client",
"version": "0.14.2",
"version": "0.14.3",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
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.14.2",
"version": "0.14.3",
"author": "Unstructured",
"main": "./index.js",
"sideEffects": false,
Expand Down
8 changes: 4 additions & 4 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {

export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.42",
sdkVersion: "0.14.2",
genVersion: "2.385.1",
userAgent: "speakeasy-sdk/typescript 0.14.2 2.385.1 1.0.42 unstructured-client",
openapiDocVersion: "1.0.43",
sdkVersion: "0.14.3",
genVersion: "2.385.2",
userAgent: "speakeasy-sdk/typescript 0.14.3 2.385.2 1.0.43 unstructured-client",
} as const;
3 changes: 3 additions & 0 deletions src/sdk/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export class General extends ClientSDK {
String(payload$.partition_parameters.combine_under_n_chars)
);
}
if (payload$.partition_parameters.content_type !== undefined) {
body$.append("content_type", String(payload$.partition_parameters.content_type));
}
if (payload$.partition_parameters.coordinates !== undefined) {
body$.append("coordinates", String(payload$.partition_parameters.coordinates));
}
Expand Down
9 changes: 9 additions & 0 deletions src/sdk/models/shared/partitionparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export type PartitionParameters = {
* If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500
*/
combineUnderNChars?: number | null | undefined;
/**
* A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype.
*/
contentType?: string | null | undefined;
/**
* If `True`, return coordinates for each element extracted via OCR. Default: `False`
*/
Expand Down Expand Up @@ -272,6 +276,7 @@ export const PartitionParameters$inboundSchema: z.ZodType<
files: z.lazy(() => Files$inboundSchema),
chunking_strategy: z.nullable(ChunkingStrategy$inboundSchema).optional(),
combine_under_n_chars: z.nullable(z.number().int()).optional(),
content_type: z.nullable(z.string()).optional(),
coordinates: z.boolean().default(false),
encoding: z.nullable(z.string()).optional(),
extract_image_block_types: z.array(z.string()).optional(),
Expand Down Expand Up @@ -302,6 +307,7 @@ export const PartitionParameters$inboundSchema: z.ZodType<
return remap$(v, {
chunking_strategy: "chunkingStrategy",
combine_under_n_chars: "combineUnderNChars",
content_type: "contentType",
extract_image_block_types: "extractImageBlockTypes",
gz_uncompressed_content_type: "gzUncompressedContentType",
hi_res_model_name: "hiResModelName",
Expand Down Expand Up @@ -330,6 +336,7 @@ export type PartitionParameters$Outbound = {
files: Files$Outbound | Blob;
chunking_strategy?: string | null | undefined;
combine_under_n_chars?: number | null | undefined;
content_type?: string | null | undefined;
coordinates: boolean;
encoding?: string | null | undefined;
extract_image_block_types?: Array<string> | undefined;
Expand Down Expand Up @@ -367,6 +374,7 @@ export const PartitionParameters$outboundSchema: z.ZodType<
files: z.lazy(() => Files$outboundSchema).or(blobLikeSchema),
chunkingStrategy: z.nullable(ChunkingStrategy$outboundSchema).optional(),
combineUnderNChars: z.nullable(z.number().int()).optional(),
contentType: z.nullable(z.string()).optional(),
coordinates: z.boolean().default(false),
encoding: z.nullable(z.string()).optional(),
extractImageBlockTypes: z.array(z.string()).optional(),
Expand Down Expand Up @@ -397,6 +405,7 @@ export const PartitionParameters$outboundSchema: z.ZodType<
return remap$(v, {
chunkingStrategy: "chunking_strategy",
combineUnderNChars: "combine_under_n_chars",
contentType: "content_type",
extractImageBlockTypes: "extract_image_block_types",
gzUncompressedContentType: "gz_uncompressed_content_type",
hiResModelName: "hi_res_model_name",
Expand Down
Loading