Skip to content

Commit 94b7330

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.544.0
1 parent 43ac43c commit 94b7330

File tree

17 files changed

+105
-46
lines changed

17 files changed

+105
-46
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.DS_Store
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.DS_Store
15
/mcp-server
26
/bin
37
/.eslintcache

.speakeasy/gen.lock

Lines changed: 9 additions & 9 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: 9e84e8d53fbc7c48d4bf35240b476a5b
5-
docVersion: 1.1.7
6-
speakeasyVersion: 1.531.0
7-
generationVersion: 2.568.2
8-
releaseVersion: 0.24.1
9-
configChecksum: e318c02067c106739f38d2f8e11f5407
4+
docChecksum: 2c60c5194be54f45a4d83cfadb0c940b
5+
docVersion: 1.1.13
6+
speakeasyVersion: 1.544.0
7+
generationVersion: 2.599.0
8+
releaseVersion: 0.24.2
9+
configChecksum: 7f6374425761a1f1e5bc23bfe158b966
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -16,15 +16,15 @@ features:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
1818
constsAndDefaults: 0.1.11
19-
core: 3.21.5
19+
core: 3.21.7
2020
defaultEnabledRetries: 0.1.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.1.2
2323
examples: 2.81.5
2424
globalSecurity: 2.82.13
2525
globalSecurityCallbacks: 0.1.0
26-
globalServerURLs: 2.82.4
27-
mcpServer: 0.9.1
26+
globalServerURLs: 2.82.5
27+
mcpServer: 0.9.2
2828
nameOverrides: 2.81.2
2929
nullables: 0.1.1
3030
openEnums: 0.1.1

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.531.0
1+
speakeasyVersion: 1.544.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:7560ec216c554bca569c62c9ab518f0218f24cfb66f0e57b136b07d2c0a9b73e
6-
sourceBlobDigest: sha256:2f8e18d1de0c41db8af50b06c236c6e68fe38a884a4f04aef5a04591af60cb7b
5+
sourceRevisionDigest: sha256:3778d7344b58a3dc02faf58e532a22e1d55d48ae879c4d62cc08a1eae9b65f59
6+
sourceBlobDigest: sha256:2c5f1ac0cce089cd7027dc50135ecd01c74a60895626026ab809f17a2141e308
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1744072198
10-
- 1.1.7
9+
- speakeasy-sdk-regen-1746059716
10+
- 1.1.13
1111
targets:
1212
unstructed-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:7560ec216c554bca569c62c9ab518f0218f24cfb66f0e57b136b07d2c0a9b73e
16-
sourceBlobDigest: sha256:2f8e18d1de0c41db8af50b06c236c6e68fe38a884a4f04aef5a04591af60cb7b
15+
sourceRevisionDigest: sha256:3778d7344b58a3dc02faf58e532a22e1d55d48ae879c4d62cc08a1eae9b65f59
16+
sourceBlobDigest: sha256:2c5f1ac0cce089cd7027dc50135ecd01c74a60895626026ab809f17a2141e308
1717
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:aea1e9a86c9c9aec7564f8fdc04f3e75a6a02912b25a3cd7c57c7ff3c8e320ee
18+
codeSamplesRevisionDigest: sha256:3d318985a24646e499605b155fe2c4c146d6fe4d3cf99fb4e92006585af5459d
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,4 +574,14 @@ Based on:
574574
### Generated
575575
- [typescript v0.24.1] .
576576
### Releases
577-
- [NPM v0.24.1] https://www.npmjs.com/package/unstructured-client/v/0.24.1 - .
577+
- [NPM v0.24.1] https://www.npmjs.com/package/unstructured-client/v/0.24.1 - .
578+
579+
## 2025-05-14 00:31:43
580+
### Changes
581+
Based on:
582+
- OpenAPI Doc
583+
- Speakeasy CLI 1.544.0 (2.599.0) https://github.com/speakeasy-api/speakeasy
584+
### Generated
585+
- [typescript v0.24.2] .
586+
### Releases
587+
- [NPM v0.24.2] https://www.npmjs.com/package/unstructured-client/v/0.24.2 - .

docs/sdk/models/shared/partitionparameters.md

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

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default [
1111
{
1212
rules: {
1313
"no-constant-condition": "off",
14+
"no-useless-escape": "off",
1415
// Handled by typescript compiler
1516
"@typescript-eslint/no-unused-vars": "off",
1617
"@typescript-eslint/no-explicit-any": "off",

gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ generation:
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
1010
securityFeb2025: false
11+
sharedErrorComponentsApr2025: false
1112
auth:
1213
oAuth2ClientCredentialsEnabled: false
1314
oAuth2PasswordEnabled: false
1415
typescript:
15-
version: 0.24.1
16+
version: 0.24.2
1617
additionalDependencies:
1718
dependencies:
1819
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.24.1",
5+
"version": "0.24.2",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unstructured-client",
3-
"version": "0.24.1",
3+
"version": "0.24.2",
44
"author": "Unstructured",
55
"type": "module",
66
"bin": {
@@ -34,7 +34,7 @@
3434
"prepublishOnly": "npm run build"
3535
},
3636
"peerDependencies": {
37-
"@modelcontextprotocol/sdk": "^1.5.0",
37+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
3838
"zod": ">= 3"
3939
},
4040
"peerDependenciesMeta": {
@@ -44,7 +44,7 @@
4444
},
4545
"devDependencies": {
4646
"@eslint/js": "^9.19.0",
47-
"@modelcontextprotocol/sdk": "^1.5.0",
47+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
4848
"@stricli/core": "^1.1.1",
4949
"@types/async": "^3.2.24",
5050
"@types/express": "^4.17.21",

src/funcs/generalPartition.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ async function $do(
316316
payload.partition_parameters.table_ocr_agent,
317317
);
318318
}
319+
if (payload.partition_parameters.tracking_enabled !== undefined) {
320+
appendForm(
321+
body,
322+
"tracking_enabled",
323+
payload.partition_parameters.tracking_enabled,
324+
);
325+
}
319326
if (payload.partition_parameters.unique_element_ids !== undefined) {
320327
appendForm(
321328
body,

src/lib/config.ts

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

6464
export const SDK_METADATA = {
6565
language: "typescript",
66-
openapiDocVersion: "1.1.7",
67-
sdkVersion: "0.24.1",
68-
genVersion: "2.568.2",
66+
openapiDocVersion: "1.1.13",
67+
sdkVersion: "0.24.2",
68+
genVersion: "2.599.0",
6969
userAgent:
70-
"speakeasy-sdk/typescript 0.24.1 2.568.2 1.1.7 unstructured-client",
70+
"speakeasy-sdk/typescript 0.24.2 2.599.0 1.1.13 unstructured-client",
7171
} as const;

src/lib/matchers.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { isPlainObject } from "./is-plain-object.js";
1010
import { safeParse } from "./schemas.js";
1111

1212
export type Encoding =
13+
| "jsonl"
1314
| "json"
1415
| "text"
1516
| "bytes"
@@ -19,6 +20,7 @@ export type Encoding =
1920
| "fail";
2021

2122
const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
23+
jsonl: "application/jsonl",
2224
json: "application/json",
2325
text: "text/plain",
2426
bytes: "application/octet-stream",
@@ -72,6 +74,21 @@ export function json<T>(
7274
return { ...options, enc: "json", codes, schema };
7375
}
7476

77+
export function jsonl<T>(
78+
codes: StatusCodePredicate,
79+
schema: Schema<T>,
80+
options?: MatchOptions,
81+
): ValueMatcher<T> {
82+
return { ...options, enc: "jsonl", codes, schema };
83+
}
84+
85+
export function jsonlErr<E>(
86+
codes: StatusCodePredicate,
87+
schema: Schema<E>,
88+
options?: MatchOptions,
89+
): ErrorMatcher<E> {
90+
return { ...options, err: true, enc: "jsonl", codes, schema };
91+
}
7592
export function textErr<E>(
7693
codes: StatusCodePredicate,
7794
schema: Schema<E>,
@@ -204,6 +221,9 @@ export function match<T, E>(
204221
case "json":
205222
raw = await response.json();
206223
break;
224+
case "jsonl":
225+
raw = response.body;
226+
break;
207227
case "bytes":
208228
raw = new Uint8Array(await response.arrayBuffer());
209229
break;

src/lib/sdks.ts

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ export type RequestOptions = {
4646
*/
4747
serverURL?: string | URL;
4848
/**
49+
* @deprecated `fetchOptions` has been flattened into `RequestOptions`.
50+
*
4951
* Sets various request options on the `fetch` call made by an SDK method.
5052
*
5153
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request}
5254
*/
5355
fetchOptions?: Omit<RequestInit, "method" | "body">;
54-
};
56+
} & Omit<RequestInit, "method" | "body">;
5557

5658
type RequestConfig = {
5759
method: string;
@@ -168,7 +170,9 @@ export class ClientSDK {
168170
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
169171
headers.set("cookie", cookie);
170172

171-
const userHeaders = new Headers(options?.fetchOptions?.headers);
173+
const userHeaders = new Headers(
174+
options?.headers ?? options?.fetchOptions?.headers,
175+
);
172176
for (const [k, v] of userHeaders) {
173177
headers.set(k, v);
174178
}
@@ -179,20 +183,16 @@ export class ClientSDK {
179183
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
180184
}
181185

182-
let fetchOptions = options?.fetchOptions;
186+
const fetchOptions: Omit<RequestInit, "method" | "body"> = {
187+
...options?.fetchOptions,
188+
...options,
189+
};
183190
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
184191
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
185-
if (!fetchOptions) {
186-
fetchOptions = { signal: timeoutSignal };
187-
} else {
188-
fetchOptions.signal = timeoutSignal;
189-
}
192+
fetchOptions.signal = timeoutSignal;
190193
}
191194

192195
if (conf.body instanceof ReadableStream) {
193-
if (!fetchOptions) {
194-
fetchOptions = {};
195-
}
196196
Object.assign(fetchOptions, { duplex: "half" });
197197
}
198198

@@ -298,7 +298,9 @@ export class ClientSDK {
298298
}
299299
}
300300

301-
const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
301+
const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
302+
const jsonlLikeContentTypeRE =
303+
/(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
302304
async function logRequest(logger: Logger | undefined, req: Request) {
303305
if (!logger) {
304306
return;
@@ -364,9 +366,13 @@ async function logResponse(
364366
logger.group("Body:");
365367
switch (true) {
366368
case matchContentType(res, "application/json")
367-
|| jsonLikeContentTypeRE.test(ct):
369+
|| jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
368370
logger.log(await res.clone().json());
369371
break;
372+
case matchContentType(res, "application/jsonl")
373+
|| jsonlLikeContentTypeRE.test(ct):
374+
logger.log(await res.clone().text());
375+
break;
370376
case matchContentType(res, "text/event-stream"):
371377
logger.log(`<${contentType}>`);
372378
break;

src/mcp-server/mcp-server.ts

Lines changed: 1 addition & 1 deletion
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.24.1",
22+
currentVersion: "0.24.2",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
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.24.1",
30+
version: "0.24.2",
3131
});
3232

3333
const client = new UnstructuredClientCore({

0 commit comments

Comments
 (0)