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"; export type ConnectionMetadata = string | number | number | boolean | Array; export type Source = string | Array | { [k: string]: any; }; export declare const DisabledBySystemReason: { readonly ConnectionOverTotalPageLimit: "connection_over_total_page_limit"; readonly AuthenticationFailed: "authentication_failed"; }; export type DisabledBySystemReason = ClosedEnum; export type Connection = { id: string; createdAt: Date; updatedAt: Date; metadata: { [k: string]: string | number | number | boolean | Array; }; type: string; name: string; source: string | Array | { [k: string]: any; } | null; enabled: boolean; disabledBySystemReason: DisabledBySystemReason | null; lastSyncedAt?: Date | null | undefined; syncing?: boolean | null | undefined; partition?: string | null | undefined; pageLimit: number | null; disabledBySystem: boolean; }; /** @internal */ export declare const ConnectionMetadata$inboundSchema: z.ZodType; /** @internal */ export type ConnectionMetadata$Outbound = string | number | number | boolean | Array; /** @internal */ export declare const ConnectionMetadata$outboundSchema: z.ZodType; export declare function connectionMetadataToJSON(connectionMetadata: ConnectionMetadata): string; export declare function connectionMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Source$inboundSchema: z.ZodType; /** @internal */ export type Source$Outbound = string | Array | { [k: string]: any; }; /** @internal */ export declare const Source$outboundSchema: z.ZodType; export declare function sourceToJSON(source: Source): string; export declare function sourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DisabledBySystemReason$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DisabledBySystemReason$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Connection$inboundSchema: z.ZodType; /** @internal */ export type Connection$Outbound = { id: string; created_at: string; updated_at: string; metadata: { [k: string]: string | number | number | boolean | Array; }; type: string; name: string; source: string | Array | { [k: string]: any; } | null; enabled: boolean; disabled_by_system_reason: string | null; last_synced_at?: string | null | undefined; syncing?: boolean | null | undefined; partition?: string | null | undefined; page_limit: number | null; disabled_by_system: boolean; }; /** @internal */ export declare const Connection$outboundSchema: z.ZodType; export declare function connectionToJSON(connection: Connection): string; export declare function connectionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=connection.d.ts.map