diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e3668cf5..eff2c096 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a management: - docChecksum: 836a71c214bbd252ed63f3ce3ba6b20f - docVersion: 1.1.4 - speakeasyVersion: 1.526.0 - generationVersion: 2.563.0 - releaseVersion: 0.24.0 - configChecksum: bf57ed240e6647b8f46d61e7a668981f + docChecksum: 9e84e8d53fbc7c48d4bf35240b476a5b + docVersion: 1.1.7 + speakeasyVersion: 1.531.0 + generationVersion: 2.568.2 + releaseVersion: 0.24.1 + configChecksum: e318c02067c106739f38d2f8e11f5407 repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-js-client @@ -16,7 +16,7 @@ features: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 constsAndDefaults: 0.1.11 - core: 3.21.4 + core: 3.21.5 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 @@ -24,7 +24,7 @@ features: globalSecurity: 2.82.13 globalSecurityCallbacks: 0.1.0 globalServerURLs: 2.82.4 - mcpServer: 0.9.0 + mcpServer: 0.9.1 nameOverrides: 2.81.2 nullables: 0.1.1 openEnums: 0.1.1 @@ -133,5 +133,5 @@ examples: application/json: {"detail": []} 5XX: application/json: {"detail": "An error occurred"} -examplesVersion: 1.0.0 +examplesVersion: 1.0.1 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 76a36d76..ebfb2813 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.526.0 +speakeasyVersion: 1.531.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:48993802cc67795e3789ee890eef5fe1c982a2b35e88e24945abe11831725e11 - sourceBlobDigest: sha256:a010b23fbfe96d4c7f91bffa6d9247d90e8e0f499e7b99f81f0d30af125517cf + sourceRevisionDigest: sha256:7560ec216c554bca569c62c9ab518f0218f24cfb66f0e57b136b07d2c0a9b73e + sourceBlobDigest: sha256:2f8e18d1de0c41db8af50b06c236c6e68fe38a884a4f04aef5a04591af60cb7b tags: - latest - - speakeasy-sdk-regen-1743121795 - - 1.1.4 + - speakeasy-sdk-regen-1744072198 + - 1.1.7 targets: unstructed-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:48993802cc67795e3789ee890eef5fe1c982a2b35e88e24945abe11831725e11 - sourceBlobDigest: sha256:a010b23fbfe96d4c7f91bffa6d9247d90e8e0f499e7b99f81f0d30af125517cf + sourceRevisionDigest: sha256:7560ec216c554bca569c62c9ab518f0218f24cfb66f0e57b136b07d2c0a9b73e + sourceBlobDigest: sha256:2f8e18d1de0c41db8af50b06c236c6e68fe38a884a4f04aef5a04591af60cb7b codeSamplesNamespace: my-source-typescript-code-samples - codeSamplesRevisionDigest: sha256:088b6af4d3d80368306b838d59c11f499eea3ec8fa83c000175d551671195cb5 + codeSamplesRevisionDigest: sha256:aea1e9a86c9c9aec7564f8fdc04f3e75a6a02912b25a3cd7c57c7ff3c8e320ee workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 8310ecd6..0dd1ddc2 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -32,8 +32,8 @@ const unstructuredClient = new UnstructuredClientCore(); async function run() { const res = await generalPartition(unstructuredClient, { partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, diff --git a/README.md b/README.md index 2f557f22..c59dae3a 100755 --- a/README.md +++ b/README.md @@ -215,8 +215,8 @@ const unstructuredClient = new UnstructuredClient(); async function run() { const result = await unstructuredClient.general.partition({ partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, @@ -270,8 +270,8 @@ const unstructuredClient = new UnstructuredClient({ async function run() { const result = await unstructuredClient.general.partition({ partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, @@ -387,8 +387,8 @@ const unstructuredClient = new UnstructuredClient(); async function run() { const result = await unstructuredClient.general.partition({ partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, diff --git a/RELEASES.md b/RELEASES.md index 2ac24c90..aa247343 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -564,4 +564,14 @@ Based on: ### Generated - [typescript v0.24.0] . ### Releases -- [NPM v0.24.0] https://www.npmjs.com/package/unstructured-client/v/0.24.0 - . \ No newline at end of file +- [NPM v0.24.0] https://www.npmjs.com/package/unstructured-client/v/0.24.0 - . + +## 2025-04-08 00:29:42 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.531.0 (2.568.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.24.1] . +### Releases +- [NPM v0.24.1] https://www.npmjs.com/package/unstructured-client/v/0.24.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 53288f44..8612aec5 100644 --- a/USAGE.md +++ b/USAGE.md @@ -12,8 +12,8 @@ const unstructuredClient = new UnstructuredClient(); async function run() { const result = await unstructuredClient.general.partition({ partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, diff --git a/docs/sdk/models/errors/detail.md b/docs/sdk/models/errors/detail.md index 614d25ec..37dc30e9 100644 --- a/docs/sdk/models/errors/detail.md +++ b/docs/sdk/models/errors/detail.md @@ -9,7 +9,7 @@ const value: shared.ValidationError[] = [ { loc: [ - 715190, + 569227, ], msg: "", type: "", diff --git a/docs/sdk/models/shared/loc.md b/docs/sdk/models/shared/loc.md index 08841740..74021dec 100644 --- a/docs/sdk/models/shared/loc.md +++ b/docs/sdk/models/shared/loc.md @@ -12,6 +12,6 @@ const value: string = ""; ### `number` ```typescript -const value: number = 602763; +const value: number = 128403; ``` diff --git a/docs/sdk/models/shared/outputformat.md b/docs/sdk/models/shared/outputformat.md index 1b80f898..bc156a08 100644 --- a/docs/sdk/models/shared/outputformat.md +++ b/docs/sdk/models/shared/outputformat.md @@ -7,7 +7,7 @@ The format of the response. Supported formats are application/json and text/csv. ```typescript import { OutputFormat } from "unstructured-client/sdk/models/shared"; -let value: OutputFormat = OutputFormat.TextCsv; +let value: OutputFormat = OutputFormat.ApplicationJson; ``` ## Values diff --git a/docs/sdk/models/shared/partitionparameters.md b/docs/sdk/models/shared/partitionparameters.md index ff6152d5..4acecc49 100644 --- a/docs/sdk/models/shared/partitionparameters.md +++ b/docs/sdk/models/shared/partitionparameters.md @@ -12,13 +12,13 @@ import { PartitionParameters } from "unstructured-client/sdk/models/shared"; | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `files` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [shared.Files](../../../sdk/models/shared/files.md) | :heavy_check_mark: | The file to extract | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | | `chunkingStrategy` | *string* | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | by_title | | `combineUnderNChars` | *number* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | | | `contentType` | *string* | :heavy_minus_sign: | 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. | | | `coordinates` | *boolean* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | | | `encoding` | *string* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | | | `extractImageBlockTypes` | *string*[] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. | | +| `files` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [shared.Files](../../../sdk/models/shared/files.md) | :heavy_check_mark: | The file to extract | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | | `gzUncompressedContentType` | *string* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping. | | | `hiResModelName` | *string* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | | | `includeOrigElements` | *boolean* | :heavy_minus_sign: | When a chunking strategy is specified, each returned chunk will include the elements consolidated to form that chunk as `.metadata.orig_elements`. Default: true. | | diff --git a/docs/sdk/models/shared/strategy.md b/docs/sdk/models/shared/strategy.md index 2ea693ee..57b5ff3b 100644 --- a/docs/sdk/models/shared/strategy.md +++ b/docs/sdk/models/shared/strategy.md @@ -7,7 +7,7 @@ The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. ```typescript import { Strategy } from "unstructured-client/sdk/models/shared"; -let value: Strategy = Strategy.HiRes; +let value: Strategy = Strategy.Vlm; ``` ## Values diff --git a/docs/sdk/models/shared/validationerror.md b/docs/sdk/models/shared/validationerror.md index e55eabc0..5e83e718 100644 --- a/docs/sdk/models/shared/validationerror.md +++ b/docs/sdk/models/shared/validationerror.md @@ -7,7 +7,7 @@ import { ValidationError } from "unstructured-client/sdk/models/shared"; let value: ValidationError = { loc: [ - 423655, + 598752, ], msg: "", type: "", diff --git a/docs/sdk/models/shared/vlmmodel.md b/docs/sdk/models/shared/vlmmodel.md index 698ea05b..8b61a484 100644 --- a/docs/sdk/models/shared/vlmmodel.md +++ b/docs/sdk/models/shared/vlmmodel.md @@ -17,6 +17,7 @@ This is an open enum. Unrecognized values will be captured as the `Unrecognized< | Name | Value | | -------------------------------------------- | -------------------------------------------- | | `Claude35Sonnet20241022` | claude-3-5-sonnet-20241022 | +| `Claude37Sonnet20250219` | claude-3-7-sonnet-20250219 | | `Gpt4o` | gpt-4o | | `Gemini15Pro` | gemini-1.5-pro | | `UsAmazonNovaProV10` | us.amazon.nova-pro-v1:0 | diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 2b6ff547..2b6cf332 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -23,8 +23,8 @@ const unstructuredClient = new UnstructuredClient(); async function run() { const result = await unstructuredClient.general.partition({ partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, @@ -58,8 +58,8 @@ const unstructuredClient = new UnstructuredClientCore(); async function run() { const res = await generalPartition(unstructuredClient, { partitionParameters: { - files: await openAsBlob("example.file"), chunkingStrategy: "by_title", + files: await openAsBlob("example.file"), splitPdfPageRange: [ 1, 10, diff --git a/gen.yaml b/gen.yaml index 17271ba8..5fc599d2 100644 --- a/gen.yaml +++ b/gen.yaml @@ -12,7 +12,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 0.24.0 + version: 0.24.1 additionalDependencies: dependencies: async: ^3.2.5 diff --git a/jsr.json b/jsr.json index 5791dc6b..8003385a 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "unstructured-client", - "version": "0.24.0", + "version": "0.24.1", "exports": { ".": "./src/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index b7e04085..5ad43693 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "unstructured-client", - "version": "0.24.0", + "version": "0.24.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "unstructured-client", - "version": "0.24.0", + "version": "0.24.1", "dependencies": { "async": "^3.2.5", "pdf-lib": "^1.17.1" diff --git a/package.json b/package.json index f8c91619..e4a2b2f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "unstructured-client", - "version": "0.24.0", + "version": "0.24.1", "author": "Unstructured", "type": "module", "bin": { diff --git a/src/lib/config.ts b/src/lib/config.ts index c6e7af04..7d26a2e1 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -12,10 +12,6 @@ import { Params, pathToFunc } from "./url.js"; * Serverless SaaS API */ export const ServerSaasApi = "saas-api"; -/** - * Hosted API Free - */ -export const ServerFreeApi = "free-api"; /** * Development server */ @@ -25,7 +21,6 @@ export const ServerDevelopment = "development"; */ export const ServerList = { [ServerSaasApi]: "https://api.unstructuredapp.io", - [ServerFreeApi]: "https://api.unstructured.io", [ServerDevelopment]: "http://localhost:8000", } as const; @@ -68,9 +63,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "1.1.4", - sdkVersion: "0.24.0", - genVersion: "2.563.0", + openapiDocVersion: "1.1.7", + sdkVersion: "0.24.1", + genVersion: "2.568.2", userAgent: - "speakeasy-sdk/typescript 0.24.0 2.563.0 1.1.4 unstructured-client", + "speakeasy-sdk/typescript 0.24.1 2.568.2 1.1.7 unstructured-client", } as const; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index d0c171aa..e802f231 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.24.0", + currentVersion: "0.24.1", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index 138cc938..ebeea971 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -74,7 +74,14 @@ export function createRegisterPrompt( prompt: PromptDefinition, ): void => { const scopes = prompt.scopes ?? []; - if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) { + if (allowedScopes.size > 0 && scopes.length === 0) { + return; + } + + if ( + allowedScopes.size > 0 + && !scopes.every((s: MCPScope) => allowedScopes.has(s)) + ) { return; } diff --git a/src/mcp-server/resources.ts b/src/mcp-server/resources.ts index 35bd5bdf..78ae68e2 100644 --- a/src/mcp-server/resources.ts +++ b/src/mcp-server/resources.ts @@ -109,7 +109,14 @@ export function createRegisterResource( ): (resource: ResourceDefinition) => void { return (resource: ResourceDefinition): void => { const scopes = resource.scopes ?? []; - if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) { + if (allowedScopes.size > 0 && scopes.length === 0) { + return; + } + + if ( + allowedScopes.size > 0 + && !scopes.every((s: MCPScope) => allowedScopes.has(s)) + ) { return; } @@ -137,7 +144,14 @@ export function createRegisterResourceTemplate( ): (resource: ResourceTemplateDefinition) => void { return (resource: ResourceTemplateDefinition): void => { const scopes = resource.scopes ?? []; - if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) { + if (allowedScopes.size > 0 && scopes.length === 0) { + return; + } + + if ( + allowedScopes.size > 0 + && !scopes.every((s: MCPScope) => allowedScopes.has(s)) + ) { return; } diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 30cbb4c7..2ce4e989 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -12,7 +12,7 @@ import { createRegisterResource, createRegisterResourceTemplate, } from "./resources.js"; -import { MCPScope, mcpScopes } from "./scopes.js"; +import { MCPScope } from "./scopes.js"; import { registerMCPExtensions } from "./server.extensions.js"; import { createRegisterTool } from "./tools.js"; import { tool$generalPartition } from "./tools/generalPartition.js"; @@ -27,7 +27,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "UnstructuredClient", - version: "0.24.0", + version: "0.24.1", }); const client = new UnstructuredClientCore({ @@ -36,7 +36,7 @@ export function createMCPServer(deps: { server: deps.server, }); - const scopes = new Set(deps.scopes ?? mcpScopes); + const scopes = new Set(deps.scopes); const allowedTools = deps.allowedTools && new Set(deps.allowedTools); const tool = createRegisterTool( diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index 31ed6b86..923d3b19 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -102,12 +102,15 @@ export function createRegisterTool( return; } - const toolScopes = tool.scopes ?? []; - if (allowedScopes.size > 0 && toolScopes.length === 0) { + const scopes = tool.scopes ?? []; + if (allowedScopes.size > 0 && scopes.length === 0) { return; } - if (!toolScopes.every((s) => allowedScopes.has(s))) { + if ( + allowedScopes.size > 0 + && !scopes.every((s: MCPScope) => allowedScopes.has(s)) + ) { return; } diff --git a/src/sdk/models/shared/partitionparameters.ts b/src/sdk/models/shared/partitionparameters.ts index dedb8dd6..3975aee1 100644 --- a/src/sdk/models/shared/partitionparameters.ts +++ b/src/sdk/models/shared/partitionparameters.ts @@ -52,6 +52,7 @@ export type StrategyOpen = OpenEnum; */ export enum VLMModel { Claude35Sonnet20241022 = "claude-3-5-sonnet-20241022", + Claude37Sonnet20250219 = "claude-3-7-sonnet-20250219", Gpt4o = "gpt-4o", Gemini15Pro = "gemini-1.5-pro", UsAmazonNovaProV10 = "us.amazon.nova-pro-v1:0", @@ -91,10 +92,6 @@ export enum VLMModelProvider { export type VLMModelProviderOpen = OpenEnum; export type PartitionParameters = { - /** - * The file to extract - */ - files: Files | Blob; /** * Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' */ @@ -119,6 +116,10 @@ export type PartitionParameters = { * The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. */ extractImageBlockTypes?: Array | undefined; + /** + * The file to extract + */ + files: Files | Blob; /** * If file is gzipped, use this content type after unzipping. */ @@ -439,13 +440,13 @@ export const PartitionParameters$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - files: z.lazy(() => Files$inboundSchema), chunking_strategy: z.nullable(z.string()).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(), + files: z.lazy(() => Files$inboundSchema), gz_uncompressed_content_type: z.nullable(z.string()).optional(), hi_res_model_name: z.nullable(z.string()).optional(), include_orig_elements: z.nullable(z.boolean()).optional(), @@ -518,13 +519,13 @@ export const PartitionParameters$inboundSchema: z.ZodType< /** @internal */ 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 | undefined; + files: Files$Outbound | Blob; gz_uncompressed_content_type?: string | null | undefined; hi_res_model_name?: string | null | undefined; include_orig_elements?: boolean | null | undefined; @@ -564,13 +565,13 @@ export const PartitionParameters$outboundSchema: z.ZodType< z.ZodTypeDef, PartitionParameters > = z.object({ - files: z.lazy(() => Files$outboundSchema).or(blobLikeSchema), chunkingStrategy: z.nullable(z.string()).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(), + files: z.lazy(() => Files$outboundSchema).or(blobLikeSchema), gzUncompressedContentType: z.nullable(z.string()).optional(), hiResModelName: z.nullable(z.string()).optional(), includeOrigElements: z.nullable(z.boolean()).optional(),