diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 81faccd5..e7be20ca 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: f69e063f6bdd37a7b29266aa34bb30a4
- docVersion: 1.2.0
- speakeasyVersion: 1.636.3
- generationVersion: 2.723.11
- releaseVersion: 0.28.0
- configChecksum: 2f7d038efc0c06515032eb8b02c062d8
+ docChecksum: a9cd06bdac5fb6851149f5b0e9776c5d
+ docVersion: 1.2.7
+ speakeasyVersion: 1.648.0
+ generationVersion: 2.737.0
+ releaseVersion: 0.29.0
+ configChecksum: a3da09b990d249ff9f5561aee1b535d2
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -16,14 +16,14 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
- core: 3.21.26
+ core: 3.26.0
defaultEnabledRetries: 0.1.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
examples: 2.82.3
globalSecurity: 2.82.14
globalSecurityCallbacks: 0.1.0
- globalServerURLs: 2.82.5
+ globalServerURLs: 2.83.0
mcpServer: 0.9.3
nameOverrides: 2.81.2
nullables: 0.1.1
@@ -128,7 +128,7 @@ examples:
partition:
speakeasy-default-partition:
requestBody:
- multipart/form-data: {"chunking_strategy": "by_title", "coordinates": false, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "include_page_breaks": false, "include_slide_notes": true, "multipage_sections": true, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "split_pdf_allow_failed": false, "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "strategy": "auto", "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
+ multipart/form-data: {"chunking_strategy": "by_title", "coordinates": false, "do_not_break_similarity_on_footer_header": false, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "include_page_breaks": false, "include_slide_notes": true, "multipage_sections": true, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "split_pdf_allow_failed": false, "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "strategy": "auto", "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
responses:
"200":
application/json: [{"type": "Title", "element_id": "6aa0ff22f91bbe7e26e8e25ca8052acd", "text": "LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysis", "metadata": {"languages": ["eng"], "page_number": 1, "filename": "layout-parser-paper.pdf", "filetype": "application/pdf"}}]
@@ -139,4 +139,4 @@ examples:
application/json: {"detail": "An error occurred"}
examplesVersion: 1.0.2
generatedTests: {}
-releaseNotes: "## Typescript SDK Changes Detected:\n* `unstructured_client.general.partition()`: \n * `request.partitionParameters.vlmModel` **Changed** **Breaking** :warning:\n"
+releaseNotes: "## Typescript SDK Changes Detected:\n* `unstructured_client.general.partition()`: \n * `request.partitionParameters.doNotBreakSimilarityOnFooterHeader` **Added**\n"
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 601c181a..97ed2196 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,21 +1,21 @@
-speakeasyVersion: 1.636.3
+speakeasyVersion: 1.648.0
sources:
my-source:
sourceNamespace: my-source
- sourceRevisionDigest: sha256:05de7030a5d70689f6aa854ba186d44d83fe0951c5ae72a2310e91686946cadf
- sourceBlobDigest: sha256:cfb1e6a24482556f98c7b5845db67aaf57ecbf7556a0d9904e673bfe0fc3ba7d
+ sourceRevisionDigest: sha256:6a1d1cac95c1b8f6ed4f055dffa907f1f96bf75b5d5bfa190f4a437048ef4865
+ sourceBlobDigest: sha256:e8c9fd0a7a559a840d32944c7eccb9fadbade798336b70ecd0d507e27e014d34
tags:
- latest
- - speakeasy-sdk-regen-1760488307
- - 1.2.0
+ - speakeasy-sdk-regen-1761265716
+ - 1.2.7
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
- sourceRevisionDigest: sha256:05de7030a5d70689f6aa854ba186d44d83fe0951c5ae72a2310e91686946cadf
- sourceBlobDigest: sha256:cfb1e6a24482556f98c7b5845db67aaf57ecbf7556a0d9904e673bfe0fc3ba7d
+ sourceRevisionDigest: sha256:6a1d1cac95c1b8f6ed4f055dffa907f1f96bf75b5d5bfa190f4a437048ef4865
+ sourceBlobDigest: sha256:e8c9fd0a7a559a840d32944c7eccb9fadbade798336b70ecd0d507e27e014d34
codeSamplesNamespace: my-source-typescript-code-samples
- codeSamplesRevisionDigest: sha256:c138bec1c39605da1156d9adb9a7ee21d9c28952f59b3f713b5400a97316ac96
+ codeSamplesRevisionDigest: sha256:eb4fafeb42461e65141860fa0a1c8a24a89a9b8d13a43aea73f857cf2a51d7a6
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/RELEASES.md b/RELEASES.md
index 373ac3bf..28606799 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -704,4 +704,14 @@ Based on:
### Generated
- [typescript v0.28.0] .
### Releases
-- [NPM v0.28.0] https://www.npmjs.com/package/unstructured-client/v/0.28.0 - .
\ No newline at end of file
+- [NPM v0.28.0] https://www.npmjs.com/package/unstructured-client/v/0.28.0 - .
+
+## 2025-11-04 00:31:37
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [typescript v0.29.0] .
+### Releases
+- [NPM v0.29.0] https://www.npmjs.com/package/unstructured-client/v/0.29.0 - .
\ No newline at end of file
diff --git a/docs/sdk/models/shared/partitionparameters.md b/docs/sdk/models/shared/partitionparameters.md
index 9bb32446..d7a8082d 100644
--- a/docs/sdk/models/shared/partitionparameters.md
+++ b/docs/sdk/models/shared/partitionparameters.md
@@ -16,6 +16,7 @@ import { PartitionParameters } from "unstructured-client/sdk/models/shared";
| `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` | |
+| `doNotBreakSimilarityOnFooterHeader` | *boolean* | :heavy_minus_sign: | When `True`, footer, header, and page number are always considered similar to the text before them for chunk by similarity method. This allows chunk by similarity to connect contents across page better. | |
| `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"
} |
diff --git a/examples/package-lock.json b/examples/package-lock.json
index a67ecea4..f341b5df 100644
--- a/examples/package-lock.json
+++ b/examples/package-lock.json
@@ -18,11 +18,11 @@
},
"..": {
"name": "unstructured-client",
- "version": "0.28.0",
+ "version": "0.29.0",
"dependencies": {
"async": "^3.2.5",
"pdf-lib": "^1.17.1",
- "zod": "^3.20.0"
+ "zod": "^3.25.0 || ^4.0.0"
},
"bin": {
"mcp": "bin/mcp-server.js"
diff --git a/gen.yaml b/gen.yaml
index 25bbca43..254809b5 100644
--- a/gen.yaml
+++ b/gen.yaml
@@ -14,12 +14,14 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
+ schemas:
+ allOfMergeStrategy: shallowMerge
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
- version: 0.28.0
+ version: 0.29.0
acceptHeaderEnum: true
additionalDependencies:
dependencies:
@@ -30,6 +32,7 @@ typescript:
vitest: ^2.1.3
peerDependencies: {}
additionalPackageJSON: {}
+ additionalScripts: {}
author: Unstructured
baseErrorName: UnstructuredClientError
clientServerStatusCodesAsErrors: true
@@ -64,3 +67,4 @@ typescript:
templateVersion: v2
usageSDKInitImports: []
useIndexModules: true
+ zodVersion: v3
diff --git a/jsr.json b/jsr.json
index a9959a35..ccafdc40 100644
--- a/jsr.json
+++ b/jsr.json
@@ -2,7 +2,7 @@
{
"name": "unstructured-client",
- "version": "0.28.0",
+ "version": "0.29.0",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
diff --git a/package-lock.json b/package-lock.json
index de7b07aa..63d86534 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,16 +1,16 @@
{
"name": "unstructured-client",
- "version": "0.28.0",
+ "version": "0.29.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "unstructured-client",
- "version": "0.28.0",
+ "version": "0.29.0",
"dependencies": {
"async": "^3.2.5",
"pdf-lib": "^1.17.1",
- "zod": "^3.20.0"
+ "zod": "^3.25.0 || ^4.0.0"
},
"bin": {
"mcp": "bin/mcp-server.js"
diff --git a/package.json b/package.json
index c2b6cb1c..fc6798c0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "unstructured-client",
- "version": "0.28.0",
+ "version": "0.29.0",
"author": "Unstructured",
"type": "module",
"bin": {
@@ -60,7 +60,7 @@
"dependencies": {
"async": "^3.2.5",
"pdf-lib": "^1.17.1",
- "zod": "^3.20.0"
+ "zod": "^3.25.0 || ^4.0.0"
},
"exports": {
".": {
diff --git a/src/funcs/generalPartition.ts b/src/funcs/generalPartition.ts
index 22d3983d..22582027 100644
--- a/src/funcs/generalPartition.ts
+++ b/src/funcs/generalPartition.ts
@@ -150,6 +150,16 @@ async function $do(
if (payload.partition_parameters.coordinates !== undefined) {
appendForm(body, "coordinates", payload.partition_parameters.coordinates);
}
+ if (
+ payload.partition_parameters.do_not_break_similarity_on_footer_header
+ !== undefined
+ ) {
+ appendForm(
+ body,
+ "do_not_break_similarity_on_footer_header",
+ payload.partition_parameters.do_not_break_similarity_on_footer_header,
+ );
+ }
if (payload.partition_parameters.encoding !== undefined) {
appendForm(body, "encoding", payload.partition_parameters.encoding);
}
diff --git a/src/lib/base64.ts b/src/lib/base64.ts
index c2d5b389..0aebd8b0 100644
--- a/src/lib/base64.ts
+++ b/src/lib/base64.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
export function bytesToBase64(u8arr: Uint8Array): string {
return btoa(String.fromCodePoint(...u8arr));
diff --git a/src/lib/config.ts b/src/lib/config.ts
index c5c934a7..da725666 100644
--- a/src/lib/config.ts
+++ b/src/lib/config.ts
@@ -67,9 +67,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
- openapiDocVersion: "1.2.0",
- sdkVersion: "0.28.0",
- genVersion: "2.723.11",
+ openapiDocVersion: "1.2.7",
+ sdkVersion: "0.29.0",
+ genVersion: "2.737.0",
userAgent:
- "speakeasy-sdk/typescript 0.28.0 2.723.11 1.2.0 unstructured-client",
+ "speakeasy-sdk/typescript 0.29.0 2.737.0 1.2.7 unstructured-client",
} as const;
diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts
index 6bfea6f6..dc2510e3 100644
--- a/src/lib/schemas.ts
+++ b/src/lib/schemas.ts
@@ -9,7 +9,7 @@ import {
ZodObject,
ZodRawShape,
ZodTypeAny,
-} from "zod";
+} from "zod/v3";
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
import { ERR, OK, Result } from "../sdk/types/fp.js";
diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts
index bfe34cd6..2200a873 100644
--- a/src/mcp-server/cli/start/command.ts
+++ b/src/mcp-server/cli/start/command.ts
@@ -3,7 +3,7 @@
*/
import { buildCommand } from "@stricli/core";
-import * as z from "zod";
+import * as z from "zod/v3";
import { ServerList } from "../../../lib/config.js";
import { consoleLoggerLevels } from "../../console-logger.js";
diff --git a/src/mcp-server/extensions.ts b/src/mcp-server/extensions.ts
index 7aab2809..0955a573 100644
--- a/src/mcp-server/extensions.ts
+++ b/src/mcp-server/extensions.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import { ZodRawShape } from "zod";
+import { ZodRawShape } from "zod/v3";
import { PromptArgsRawShape, PromptDefinition } from "./prompts.js";
import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
import { ToolDefinition } from "./tools.js";
diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts
index 0db3e576..ba4f87e6 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.28.0",
+ currentVersion: "0.29.0",
},
});
diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts
index ebeea971..a8bd32bb 100644
--- a/src/mcp-server/prompts.ts
+++ b/src/mcp-server/prompts.ts
@@ -11,7 +11,7 @@ import {
ZodType,
ZodTypeAny,
ZodTypeDef,
-} from "zod";
+} from "zod/v3";
import { UnstructuredClientCore } from "../core.js";
import { ConsoleLogger } from "./console-logger.js";
import { MCPScope } from "./scopes.js";
diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts
index 6288da77..4642c742 100644
--- a/src/mcp-server/server.ts
+++ b/src/mcp-server/server.ts
@@ -27,7 +27,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "UnstructuredClient",
- version: "0.28.0",
+ version: "0.29.0",
});
const client = new UnstructuredClientCore({
diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts
index 9dc6d2f6..3e94144d 100644
--- a/src/mcp-server/shared.ts
+++ b/src/mcp-server/shared.ts
@@ -2,9 +2,8 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { bytesToBase64 } from "../lib/base64.js";
-
type BinaryData =
| Uint8Array
| ArrayBuffer
diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts
index 923d3b19..516fd7ef 100644
--- a/src/mcp-server/tools.ts
+++ b/src/mcp-server/tools.ts
@@ -5,7 +5,7 @@
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
-import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod";
+import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3";
import { UnstructuredClientCore } from "../core.js";
import { ConsoleLogger } from "./console-logger.js";
import { MCPScope } from "./scopes.js";
diff --git a/src/sdk/models/errors/httpvalidationerror.ts b/src/sdk/models/errors/httpvalidationerror.ts
index 1e3ada7b..bb6fce63 100644
--- a/src/sdk/models/errors/httpvalidationerror.ts
+++ b/src/sdk/models/errors/httpvalidationerror.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { safeParse } from "../../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as shared from "../shared/index.js";
@@ -47,7 +47,7 @@ export type Detail$Outbound = Array | string;
export const Detail$outboundSchema: z.ZodType<
Detail$Outbound,
z.ZodTypeDef,
- Detail
+ unknown
> = z.union([z.array(shared.ValidationError$outboundSchema), z.string()]);
/**
diff --git a/src/sdk/models/errors/responsevalidationerror.ts b/src/sdk/models/errors/responsevalidationerror.ts
index 944fb9a2..3cbbff9b 100644
--- a/src/sdk/models/errors/responsevalidationerror.ts
+++ b/src/sdk/models/errors/responsevalidationerror.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { formatZodError } from "./sdkvalidationerror.js";
import { UnstructuredClientError } from "./unstructuredclienterror.js";
diff --git a/src/sdk/models/errors/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts
index 37face8a..6826e120 100644
--- a/src/sdk/models/errors/sdkvalidationerror.ts
+++ b/src/sdk/models/errors/sdkvalidationerror.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
export class SDKValidationError extends Error {
/**
diff --git a/src/sdk/models/errors/servererror.ts b/src/sdk/models/errors/servererror.ts
index d6460277..29995d45 100644
--- a/src/sdk/models/errors/servererror.ts
+++ b/src/sdk/models/errors/servererror.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { UnstructuredClientError } from "./unstructuredclienterror.js";
export type ServerErrorData = {
diff --git a/src/sdk/models/operations/partition.ts b/src/sdk/models/operations/partition.ts
index f237ceba..d733c763 100644
--- a/src/sdk/models/operations/partition.ts
+++ b/src/sdk/models/operations/partition.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
diff --git a/src/sdk/models/shared/partitionparameters.ts b/src/sdk/models/shared/partitionparameters.ts
index e82bf794..663407cd 100644
--- a/src/sdk/models/shared/partitionparameters.ts
+++ b/src/sdk/models/shared/partitionparameters.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import { blobLikeSchema } from "../../types/blobs.js";
@@ -81,6 +81,10 @@ export type PartitionParameters = {
* If `True`, return coordinates for each element extracted via OCR. Default: `False`
*/
coordinates?: boolean | undefined;
+ /**
+ * When `True`, footer, header, and page number are always considered similar to the text before them for chunk by similarity method. This allows chunk by similarity to connect contents across page better.
+ */
+ doNotBreakSimilarityOnFooterHeader?: boolean | undefined;
/**
* The encoding method used to decode the text input. Default: utf-8
*/
@@ -385,6 +389,7 @@ export const PartitionParameters$inboundSchema: z.ZodType<
combine_under_n_chars: z.nullable(z.number().int()).optional(),
content_type: z.nullable(z.string()).optional(),
coordinates: z.boolean().default(false),
+ do_not_break_similarity_on_footer_header: z.boolean().default(false),
encoding: z.nullable(z.string()).optional(),
extract_image_block_types: z.array(z.string()).optional(),
files: z.lazy(() => Files$inboundSchema),
@@ -426,6 +431,8 @@ export const PartitionParameters$inboundSchema: z.ZodType<
"chunking_strategy": "chunkingStrategy",
"combine_under_n_chars": "combineUnderNChars",
"content_type": "contentType",
+ "do_not_break_similarity_on_footer_header":
+ "doNotBreakSimilarityOnFooterHeader",
"extract_image_block_types": "extractImageBlockTypes",
"gz_uncompressed_content_type": "gzUncompressedContentType",
"hi_res_model_name": "hiResModelName",
@@ -464,6 +471,7 @@ export type PartitionParameters$Outbound = {
combine_under_n_chars?: number | null | undefined;
content_type?: string | null | undefined;
coordinates: boolean;
+ do_not_break_similarity_on_footer_header: boolean;
encoding?: string | null | undefined;
extract_image_block_types?: Array | undefined;
files: Files$Outbound | Blob;
@@ -510,6 +518,7 @@ export const PartitionParameters$outboundSchema: z.ZodType<
combineUnderNChars: z.nullable(z.number().int()).optional(),
contentType: z.nullable(z.string()).optional(),
coordinates: z.boolean().default(false),
+ doNotBreakSimilarityOnFooterHeader: z.boolean().default(false),
encoding: z.nullable(z.string()).optional(),
extractImageBlockTypes: z.array(z.string()).optional(),
files: z.lazy(() => Files$outboundSchema).or(blobLikeSchema),
@@ -551,6 +560,8 @@ export const PartitionParameters$outboundSchema: z.ZodType<
chunkingStrategy: "chunking_strategy",
combineUnderNChars: "combine_under_n_chars",
contentType: "content_type",
+ doNotBreakSimilarityOnFooterHeader:
+ "do_not_break_similarity_on_footer_header",
extractImageBlockTypes: "extract_image_block_types",
gzUncompressedContentType: "gz_uncompressed_content_type",
hiResModelName: "hi_res_model_name",
diff --git a/src/sdk/models/shared/security.ts b/src/sdk/models/shared/security.ts
index c7006de6..00814149 100644
--- a/src/sdk/models/shared/security.ts
+++ b/src/sdk/models/shared/security.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
diff --git a/src/sdk/models/shared/validationerror.ts b/src/sdk/models/shared/validationerror.ts
index 460f9c9e..79a50edf 100644
--- a/src/sdk/models/shared/validationerror.ts
+++ b/src/sdk/models/shared/validationerror.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
import { safeParse } from "../../../lib/schemas.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
diff --git a/src/sdk/types/blobs.ts b/src/sdk/types/blobs.ts
index 4ce84602..cce2892d 100644
--- a/src/sdk/types/blobs.ts
+++ b/src/sdk/types/blobs.ts
@@ -2,13 +2,14 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
-export const blobLikeSchema: z.ZodType =
- z.custom(isBlobLike, {
- message: "expected a Blob, File or Blob-like object",
- fatal: true,
- });
+export const blobLikeSchema: z.ZodType = z.custom<
+ Blob
+>(isBlobLike, {
+ message: "expected a Blob, File or Blob-like object",
+ fatal: true,
+});
export function isBlobLike(val: unknown): val is Blob {
if (val instanceof Blob) {
diff --git a/src/sdk/types/constdatetime.ts b/src/sdk/types/constdatetime.ts
index eeff4dde..fe62144e 100644
--- a/src/sdk/types/constdatetime.ts
+++ b/src/sdk/types/constdatetime.ts
@@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
-import * as z from "zod";
+import * as z from "zod/v3";
export function constDateTime(
val: string,