Skip to content

Commit 0fdd5e9

Browse files
chore: 🐝 Update SDK - Generate 0.14.3 (#99)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/3dbf976e331cf68a5a5677ada97bf821> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/63ac94598d912eddc2f46d831fd767a7> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (4:14) └─┬Components └─┬partition_parameters └──[➕] properties (103:17) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 1 | 0 | Co-authored-by: speakeasybot <[email protected]>
1 parent d1e6ad3 commit 0fdd5e9

File tree

11 files changed

+45
-22
lines changed

11 files changed

+45
-22
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
4-
docChecksum: 5e578870a27407577332f022decd7f44
5-
docVersion: 1.0.42
6-
speakeasyVersion: 1.352.1
7-
generationVersion: 2.385.1
8-
releaseVersion: 0.14.2
9-
configChecksum: 3543fd0ecf30aa45d124e1680e4dba21
4+
docChecksum: 313cde7d6359c03a54d049d16912ef28
5+
docVersion: 1.0.43
6+
speakeasyVersion: 1.352.2
7+
generationVersion: 2.385.2
8+
releaseVersion: 0.14.3
9+
configChecksum: 24d1b79c19f3f663bcb751438a2b57a1
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -19,7 +19,7 @@ features:
1919
defaultEnabledRetries: 0.1.0
2020
envVarSecurityUsage: 0.1.1
2121
examples: 2.81.4
22-
globalSecurity: 2.82.9
22+
globalSecurity: 2.82.10
2323
globalSecurityCallbacks: 0.1.0
2424
globalServerURLs: 2.82.4
2525
nameOverrides: 2.81.2

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.352.1
1+
speakeasyVersion: 1.352.2
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:5986bbcf35f9a55e65e68a3d8447a36dbc67b1c2b7aff3f999fe0e993ebc8b5e
6-
sourceBlobDigest: sha256:5f3f1a852166fb6d5324aea023fd178fda902671e8294ab660c6c32458b6abc5
5+
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
6+
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:5986bbcf35f9a55e65e68a3d8447a36dbc67b1c2b7aff3f999fe0e993ebc8b5e
15-
sourceBlobDigest: sha256:5f3f1a852166fb6d5324aea023fd178fda902671e8294ab660c6c32458b6abc5
14+
sourceRevisionDigest: sha256:45a4bd066d93e632ee139a9c8afb536117a0be09ef5a8f1bfa356c101e012d41
15+
sourceBlobDigest: sha256:4ad78f23f149b3fb49d550e719cc9fb021ec2762756d5c7b06e8112e946b4619
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,4 +404,14 @@ Based on:
404404
### Generated
405405
- [typescript v0.14.2] .
406406
### Releases
407-
- [NPM v0.14.2] https://www.npmjs.com/package/unstructured-client/v/0.14.2 - .
407+
- [NPM v0.14.2] https://www.npmjs.com/package/unstructured-client/v/0.14.2 - .
408+
409+
## 2024-08-06 00:40:28
410+
### Changes
411+
Based on:
412+
- OpenAPI Doc
413+
- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy
414+
### Generated
415+
- [typescript v0.14.3] .
416+
### Releases
417+
- [NPM v0.14.3] https://www.npmjs.com/package/unstructured-client/v/0.14.3 - .

docs/sdk/models/shared/partitionparameters.md

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
typescript:
13-
version: 0.14.2
13+
version: 0.14.3
1414
additionalDependencies:
1515
dependencies:
1616
async: ^3.2.5

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "unstructured-client",
5-
"version": "0.14.2",
5+
"version": "0.14.3",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

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.14.2",
3+
"version": "0.14.3",
44
"author": "Unstructured",
55
"main": "./index.js",
66
"sideEffects": false,

src/lib/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6666

6767
export const SDK_METADATA = {
6868
language: "typescript",
69-
openapiDocVersion: "1.0.42",
70-
sdkVersion: "0.14.2",
71-
genVersion: "2.385.1",
72-
userAgent: "speakeasy-sdk/typescript 0.14.2 2.385.1 1.0.42 unstructured-client",
69+
openapiDocVersion: "1.0.43",
70+
sdkVersion: "0.14.3",
71+
genVersion: "2.385.2",
72+
userAgent: "speakeasy-sdk/typescript 0.14.3 2.385.2 1.0.43 unstructured-client",
7373
} as const;

src/sdk/general.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export class General extends ClientSDK {
5959
String(payload$.partition_parameters.combine_under_n_chars)
6060
);
6161
}
62+
if (payload$.partition_parameters.content_type !== undefined) {
63+
body$.append("content_type", String(payload$.partition_parameters.content_type));
64+
}
6265
if (payload$.partition_parameters.coordinates !== undefined) {
6366
body$.append("coordinates", String(payload$.partition_parameters.coordinates));
6467
}

src/sdk/models/shared/partitionparameters.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export type PartitionParameters = {
6060
* If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500
6161
*/
6262
combineUnderNChars?: number | null | undefined;
63+
/**
64+
* 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.
65+
*/
66+
contentType?: string | null | undefined;
6367
/**
6468
* If `True`, return coordinates for each element extracted via OCR. Default: `False`
6569
*/
@@ -272,6 +276,7 @@ export const PartitionParameters$inboundSchema: z.ZodType<
272276
files: z.lazy(() => Files$inboundSchema),
273277
chunking_strategy: z.nullable(ChunkingStrategy$inboundSchema).optional(),
274278
combine_under_n_chars: z.nullable(z.number().int()).optional(),
279+
content_type: z.nullable(z.string()).optional(),
275280
coordinates: z.boolean().default(false),
276281
encoding: z.nullable(z.string()).optional(),
277282
extract_image_block_types: z.array(z.string()).optional(),
@@ -302,6 +307,7 @@ export const PartitionParameters$inboundSchema: z.ZodType<
302307
return remap$(v, {
303308
chunking_strategy: "chunkingStrategy",
304309
combine_under_n_chars: "combineUnderNChars",
310+
content_type: "contentType",
305311
extract_image_block_types: "extractImageBlockTypes",
306312
gz_uncompressed_content_type: "gzUncompressedContentType",
307313
hi_res_model_name: "hiResModelName",
@@ -330,6 +336,7 @@ export type PartitionParameters$Outbound = {
330336
files: Files$Outbound | Blob;
331337
chunking_strategy?: string | null | undefined;
332338
combine_under_n_chars?: number | null | undefined;
339+
content_type?: string | null | undefined;
333340
coordinates: boolean;
334341
encoding?: string | null | undefined;
335342
extract_image_block_types?: Array<string> | undefined;
@@ -367,6 +374,7 @@ export const PartitionParameters$outboundSchema: z.ZodType<
367374
files: z.lazy(() => Files$outboundSchema).or(blobLikeSchema),
368375
chunkingStrategy: z.nullable(ChunkingStrategy$outboundSchema).optional(),
369376
combineUnderNChars: z.nullable(z.number().int()).optional(),
377+
contentType: z.nullable(z.string()).optional(),
370378
coordinates: z.boolean().default(false),
371379
encoding: z.nullable(z.string()).optional(),
372380
extractImageBlockTypes: z.array(z.string()).optional(),
@@ -397,6 +405,7 @@ export const PartitionParameters$outboundSchema: z.ZodType<
397405
return remap$(v, {
398406
chunkingStrategy: "chunking_strategy",
399407
combineUnderNChars: "combine_under_n_chars",
408+
contentType: "content_type",
400409
extractImageBlockTypes: "extract_image_block_types",
401410
gzUncompressedContentType: "gz_uncompressed_content_type",
402411
hiResModelName: "hi_res_model_name",

0 commit comments

Comments
 (0)