import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MediaModeParam, MediaModeParam$Outbound } from "./mediamodeparam.js"; export declare const PartitionStrategy1: { readonly HiRes: "hi_res"; readonly Fast: "fast"; }; export type PartitionStrategy1 = ClosedEnum; export type PartitionStrategy = PartitionStrategy1 | MediaModeParam; export type ConnectionBaseMetadata = string | number | number | boolean | Array; export type ConnectionBase = { partitionStrategy: PartitionStrategy1 | MediaModeParam; /** * Metadata for the document. Keys must be strings. Values may be strings, numbers, booleans, or lists of strings. Numbers may be integers or floating point and will be converted to 64 bit floating point. 1000 total values are allowed. Each item in an array counts towards the total. The following keys are reserved for internal use: `document_id`, `document_type`, `document_source`, `document_name`, `document_uploaded_at`, `start_time`, `end_time`, `chunk_content_type`. */ metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; /** * The maximum number of pages a connection will sync. The connection will be disabled after this limit is reached. Some in process documents may continue processing. Remove the limit by setting to `null`. */ pageLimit?: number | null | undefined; }; /** @internal */ export declare const PartitionStrategy1$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartitionStrategy1$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PartitionStrategy$inboundSchema: z.ZodType; /** @internal */ export type PartitionStrategy$Outbound = string | MediaModeParam$Outbound; /** @internal */ export declare const PartitionStrategy$outboundSchema: z.ZodType; export declare function partitionStrategyToJSON(partitionStrategy: PartitionStrategy): string; export declare function partitionStrategyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConnectionBaseMetadata$inboundSchema: z.ZodType; /** @internal */ export type ConnectionBaseMetadata$Outbound = string | number | number | boolean | Array; /** @internal */ export declare const ConnectionBaseMetadata$outboundSchema: z.ZodType; export declare function connectionBaseMetadataToJSON(connectionBaseMetadata: ConnectionBaseMetadata): string; export declare function connectionBaseMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConnectionBase$inboundSchema: z.ZodType; /** @internal */ export type ConnectionBase$Outbound = { partition_strategy: string | MediaModeParam$Outbound; metadata?: { [k: string]: string | number | number | boolean | Array; } | undefined; page_limit?: number | null | undefined; }; /** @internal */ export declare const ConnectionBase$outboundSchema: z.ZodType; export declare function connectionBaseToJSON(connectionBase: ConnectionBase): string; export declare function connectionBaseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=connectionbase.d.ts.map