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"; /** * Sort order by last updated timestamp: asc (oldest first) or desc (newest first) */ export declare const Order: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * Sort order by last updated timestamp: asc (oldest first) or desc (newest first) */ export type Order = ClosedEnum; /** * Filter conversations by metadata key-value pairs (JSON string or object). Only conversations with matching metadata will be returned. */ export type Metadata = string | { [k: string]: string; }; export type ConversationsListRequest = { after?: string | undefined; limit?: number | undefined; /** * Sort order by last updated timestamp: asc (oldest first) or desc (newest first) */ order?: Order | undefined; /** * Filter conversations by metadata key-value pairs (JSON string or object). Only conversations with matching metadata will be returned. */ metadata?: string | { [k: string]: string; } | undefined; search?: string | undefined; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; }; /** @internal */ export declare const Order$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Order$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Metadata$inboundSchema: z.ZodType; /** @internal */ export type Metadata$Outbound = string | { [k: string]: string; }; /** @internal */ export declare const Metadata$outboundSchema: z.ZodType; export declare function metadataToJSON(metadata: Metadata): string; export declare function metadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ConversationsListRequest$inboundSchema: z.ZodType; /** @internal */ export type ConversationsListRequest$Outbound = { after?: string | undefined; limit: number; order: string; metadata?: string | { [k: string]: string; } | undefined; search?: string | undefined; "X-On-Behalf-Of"?: string | undefined; }; /** @internal */ export declare const ConversationsListRequest$outboundSchema: z.ZodType; export declare function conversationsListRequestToJSON(conversationsListRequest: ConversationsListRequest): string; export declare function conversationsListRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=conversationslist.d.ts.map