Skip to content

Commit 00c9130

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.0
1 parent 916c5fd commit 00c9130

File tree

15 files changed

+117
-30
lines changed

15 files changed

+117
-30
lines changed

.speakeasy/gen.lock

+7-7
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: 2e7f129641ad96d49fcda2ceb173d43c
5-
docVersion: 1.0.81
6-
speakeasyVersion: 1.519.0
7-
generationVersion: 2.552.1
8-
releaseVersion: 0.23.0
9-
configChecksum: 86d5f752c6378b160f1e0a2fb1b0cea7
4+
docChecksum: 836a71c214bbd252ed63f3ce3ba6b20f
5+
docVersion: 1.1.4
6+
speakeasyVersion: 1.526.0
7+
generationVersion: 2.563.0
8+
releaseVersion: 0.24.0
9+
configChecksum: bf57ed240e6647b8f46d61e7a668981f
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -24,7 +24,7 @@ features:
2424
globalSecurity: 2.82.13
2525
globalSecurityCallbacks: 0.1.0
2626
globalServerURLs: 2.82.4
27-
mcpServer: 0.8.0
27+
mcpServer: 0.9.0
2828
nameOverrides: 2.81.2
2929
nullables: 0.1.1
3030
openEnums: 0.1.1

.speakeasy/workflow.lock

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.519.0
1+
speakeasyVersion: 1.526.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:acb76c58ac398f0d1ea1f9eef8df422c40d5a237c7cf020522258b327792a68d
6-
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
5+
sourceRevisionDigest: sha256:48993802cc67795e3789ee890eef5fe1c982a2b35e88e24945abe11831725e11
6+
sourceBlobDigest: sha256:a010b23fbfe96d4c7f91bffa6d9247d90e8e0f499e7b99f81f0d30af125517cf
77
tags:
88
- latest
9-
- 1.0.81
9+
- speakeasy-sdk-regen-1743121795
10+
- 1.1.4
1011
targets:
1112
unstructed-typescript:
1213
source: my-source
1314
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:acb76c58ac398f0d1ea1f9eef8df422c40d5a237c7cf020522258b327792a68d
15-
sourceBlobDigest: sha256:822e38da0c61b9aeaa5446413a6cec058a464920a02d20d9ee7955c827446050
15+
sourceRevisionDigest: sha256:48993802cc67795e3789ee890eef5fe1c982a2b35e88e24945abe11831725e11
16+
sourceBlobDigest: sha256:a010b23fbfe96d4c7f91bffa6d9247d90e8e0f499e7b99f81f0d30af125517cf
1617
codeSamplesNamespace: my-source-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:bc9b9485931a5f01bce3a872cdba2295e5aa3e155f52890568c3e8b18c9fd66d
18+
codeSamplesRevisionDigest: sha256:088b6af4d3d80368306b838d59c11f499eea3ec8fa83c000175d551671195cb5
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -554,4 +554,14 @@ Based on:
554554
### Generated
555555
- [typescript v0.22.0] .
556556
### Releases
557-
- [NPM v0.22.0] https://www.npmjs.com/package/unstructured-client/v/0.22.0 - .
557+
- [NPM v0.22.0] https://www.npmjs.com/package/unstructured-client/v/0.22.0 - .
558+
559+
## 2025-03-30 00:32:39
560+
### Changes
561+
Based on:
562+
- OpenAPI Doc
563+
- Speakeasy CLI 1.526.0 (2.563.0) https://github.com/speakeasy-api/speakeasy
564+
### Generated
565+
- [typescript v0.24.0] .
566+
### Releases
567+
- [NPM v0.24.0] https://www.npmjs.com/package/unstructured-client/v/0.24.0 - .

docs/sdk/models/shared/partitionparameters.md

+4
Large diffs are not rendered by default.

gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2ClientCredentialsEnabled: false
1313
oAuth2PasswordEnabled: false
1414
typescript:
15-
version: 0.23.0
15+
version: 0.24.0
1616
additionalDependencies:
1717
dependencies:
1818
async: ^3.2.5

jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unstructured-client",
3-
"version": "0.23.0",
3+
"version": "0.24.0",
44
"author": "Unstructured",
55
"type": "module",
66
"bin": {

src/funcs/generalPartition.ts

+28
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,34 @@ async function $do(
229229
payload.partition_parameters.pdf_infer_table_structure,
230230
);
231231
}
232+
if (payload.partition_parameters.pdfminer_char_margin !== undefined) {
233+
appendForm(
234+
body,
235+
"pdfminer_char_margin",
236+
payload.partition_parameters.pdfminer_char_margin,
237+
);
238+
}
239+
if (payload.partition_parameters.pdfminer_line_margin !== undefined) {
240+
appendForm(
241+
body,
242+
"pdfminer_line_margin",
243+
payload.partition_parameters.pdfminer_line_margin,
244+
);
245+
}
246+
if (payload.partition_parameters.pdfminer_line_overlap !== undefined) {
247+
appendForm(
248+
body,
249+
"pdfminer_line_overlap",
250+
payload.partition_parameters.pdfminer_line_overlap,
251+
);
252+
}
253+
if (payload.partition_parameters.pdfminer_word_margin !== undefined) {
254+
appendForm(
255+
body,
256+
"pdfminer_word_margin",
257+
payload.partition_parameters.pdfminer_word_margin,
258+
);
259+
}
232260
if (payload.partition_parameters.similarity_threshold !== undefined) {
233261
appendForm(
234262
body,

src/hooks/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { SecurityState } from "../lib/security.js";
99
export type HookContext = {
1010
baseURL: string | URL;
1111
operationID: string;
12-
oAuth2Scopes?: string[];
12+
oAuth2Scopes: string[] | null;
1313
securitySource?: any | (() => Promise<any>);
1414
retryConfig: RetryConfig;
1515
resolvedSecurity: SecurityState | null;

src/lib/config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6868

6969
export const SDK_METADATA = {
7070
language: "typescript",
71-
openapiDocVersion: "1.0.81",
72-
sdkVersion: "0.23.0",
73-
genVersion: "2.552.1",
71+
openapiDocVersion: "1.1.4",
72+
sdkVersion: "0.24.0",
73+
genVersion: "2.563.0",
7474
userAgent:
75-
"speakeasy-sdk/typescript 0.23.0 2.552.1 1.0.81 unstructured-client",
75+
"speakeasy-sdk/typescript 0.24.0 2.563.0 1.1.4 unstructured-client",
7676
} as const;

src/lib/security.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
import * as shared from "../sdk/models/shared/index.js";
6+
67
type OAuth2PasswordFlow = {
78
username: string;
89
password?: string | undefined;
@@ -84,7 +85,9 @@ type SecurityInputOAuth2ClientCredentials = {
8485
value:
8586
| { clientID?: string | undefined; clientSecret?: string | undefined }
8687
| null
88+
| string
8789
| undefined;
90+
fieldName?: string;
8891
};
8992

9093
type SecurityInputOAuth2PasswordCredentials = {
@@ -93,13 +96,13 @@ type SecurityInputOAuth2PasswordCredentials = {
9396
| string
9497
| null
9598
| undefined;
96-
fieldName: string;
99+
fieldName?: string;
97100
};
98101

99102
type SecurityInputCustom = {
100103
type: "http:custom";
101104
value: any | null | undefined;
102-
fieldName: string;
105+
fieldName?: string;
103106
};
104107

105108
export type SecurityInput =
@@ -136,6 +139,9 @@ export function resolveSecurity(
136139
typeof o.value === "string" && !!o.value
137140
);
138141
} else if (o.type === "oauth2:client_credentials") {
142+
if (typeof o.value == "string") {
143+
return !!o.value;
144+
}
139145
return o.value.clientID != null || o.value.clientSecret != null;
140146
} else if (typeof o.value === "string") {
141147
return !!o.value;
@@ -224,7 +230,9 @@ function applyBearer(
224230
value = `Bearer ${value}`;
225231
}
226232

227-
state.headers[spec.fieldName] = value;
233+
if (spec.fieldName !== undefined) {
234+
state.headers[spec.fieldName] = value;
235+
}
228236
}
229237

230238
export function resolveGlobalSecurity(

src/mcp-server/mcp-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
1919
export const app = buildApplication(routes, {
2020
name: "mcp",
2121
versionInfo: {
22-
currentVersion: "0.23.0",
22+
currentVersion: "0.24.0",
2323
},
2424
});
2525

src/mcp-server/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function createMCPServer(deps: {
2727
}) {
2828
const server = new McpServer({
2929
name: "UnstructuredClient",
30-
version: "0.23.0",
30+
version: "0.24.0",
3131
});
3232

3333
const client = new UnstructuredClientCore({

src/sdk/models/shared/partitionparameters.ts

+36
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@ export type PartitionParameters = {
175175
* Deprecated! Use skip_infer_table_types to opt out of table extraction for any file type. If False and strategy=hi_res, no Table Elements will be extracted from pdf files regardless of skip_infer_table_types contents.
176176
*/
177177
pdfInferTableStructure?: boolean | undefined;
178+
/**
179+
* If two characters are closer together than this margin they are considered part of the same line. The margin is specified relative to the width of the character.
180+
*/
181+
pdfminerCharMargin?: number | null | undefined;
182+
/**
183+
* If two lines are close together they are considered to be part of the same paragraph. The margin is specified relative to the height of a line.
184+
*/
185+
pdfminerLineMargin?: number | null | undefined;
186+
/**
187+
* If two characters have more overlap than this they are considered to be on the same line. The overlap is specified relative to the minimum height of both characters.
188+
*/
189+
pdfminerLineOverlap?: number | null | undefined;
190+
/**
191+
* If two characters on the same line are further apart than this margin then they are considered to be two separate words, and an intermediate space will be added for readability. The margin is specified relative to the width of the character.
192+
*/
193+
pdfminerWordMargin?: number | null | undefined;
178194
/**
179195
* A value between 0.0 and 1.0 describing the minimum similarity two elements must have to be included in the same chunk. Note that similar elements may be separated to meet chunk-size criteria; this value can only guarantees that two elements with similarity below the threshold will appear in separate chunks.
180196
*/
@@ -446,6 +462,10 @@ export const PartitionParameters$inboundSchema: z.ZodType<
446462
overlap: z.number().int().default(0),
447463
overlap_all: z.boolean().default(false),
448464
pdf_infer_table_structure: z.boolean().default(true),
465+
pdfminer_char_margin: z.nullable(z.number()).optional(),
466+
pdfminer_line_margin: z.nullable(z.number()).optional(),
467+
pdfminer_line_overlap: z.nullable(z.number()).optional(),
468+
pdfminer_word_margin: z.nullable(z.number()).optional(),
449469
similarity_threshold: z.nullable(z.number()).optional(),
450470
skip_infer_table_types: z.array(z.string()).optional(),
451471
split_pdf_allow_failed: z.boolean().default(false),
@@ -477,6 +497,10 @@ export const PartitionParameters$inboundSchema: z.ZodType<
477497
"output_format": "outputFormat",
478498
"overlap_all": "overlapAll",
479499
"pdf_infer_table_structure": "pdfInferTableStructure",
500+
"pdfminer_char_margin": "pdfminerCharMargin",
501+
"pdfminer_line_margin": "pdfminerLineMargin",
502+
"pdfminer_line_overlap": "pdfminerLineOverlap",
503+
"pdfminer_word_margin": "pdfminerWordMargin",
480504
"similarity_threshold": "similarityThreshold",
481505
"skip_infer_table_types": "skipInferTableTypes",
482506
"split_pdf_allow_failed": "splitPdfAllowFailed",
@@ -515,6 +539,10 @@ export type PartitionParameters$Outbound = {
515539
overlap: number;
516540
overlap_all: boolean;
517541
pdf_infer_table_structure: boolean;
542+
pdfminer_char_margin?: number | null | undefined;
543+
pdfminer_line_margin?: number | null | undefined;
544+
pdfminer_line_overlap?: number | null | undefined;
545+
pdfminer_word_margin?: number | null | undefined;
518546
similarity_threshold?: number | null | undefined;
519547
skip_infer_table_types?: Array<string> | undefined;
520548
split_pdf_allow_failed: boolean;
@@ -559,6 +587,10 @@ export const PartitionParameters$outboundSchema: z.ZodType<
559587
overlap: z.number().int().default(0),
560588
overlapAll: z.boolean().default(false),
561589
pdfInferTableStructure: z.boolean().default(true),
590+
pdfminerCharMargin: z.nullable(z.number()).optional(),
591+
pdfminerLineMargin: z.nullable(z.number()).optional(),
592+
pdfminerLineOverlap: z.nullable(z.number()).optional(),
593+
pdfminerWordMargin: z.nullable(z.number()).optional(),
562594
similarityThreshold: z.nullable(z.number()).optional(),
563595
skipInferTableTypes: z.array(z.string()).optional(),
564596
splitPdfAllowFailed: z.boolean().default(false),
@@ -590,6 +622,10 @@ export const PartitionParameters$outboundSchema: z.ZodType<
590622
outputFormat: "output_format",
591623
overlapAll: "overlap_all",
592624
pdfInferTableStructure: "pdf_infer_table_structure",
625+
pdfminerCharMargin: "pdfminer_char_margin",
626+
pdfminerLineMargin: "pdfminer_line_margin",
627+
pdfminerLineOverlap: "pdfminer_line_overlap",
628+
pdfminerWordMargin: "pdfminer_word_margin",
593629
similarityThreshold: "similarity_threshold",
594630
skipInferTableTypes: "skip_infer_table_types",
595631
splitPdfAllowFailed: "split_pdf_allow_failed",

0 commit comments

Comments
 (0)