import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). * * @remarks * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. * If not provided with API key auth, returns attempts from all tenants. */ export type ListAttemptsTenantId = string | Array; /** * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). */ export type ListAttemptsEventId = string | Array; /** * Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). */ export type ListAttemptsDestinationId = string | Array; /** * Filter attempts by status. */ export declare const ListAttemptsStatus: { readonly Success: "success"; readonly Failed: "failed"; }; /** * Filter attempts by status. */ export type ListAttemptsStatus = ClosedEnum; /** * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ export type ListAttemptsTopic = string | Array; /** * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) * - `event.data`: Include full event with payload data * - `response_data`: Include response body and headers * - `destination`: Include the full destination object */ export type ListAttemptsInclude = string | Array; /** * Field to sort by. */ export declare const ListAttemptsOrderBy: { readonly Time: "time"; }; /** * Field to sort by. */ export type ListAttemptsOrderBy = ClosedEnum; /** * Sort direction. */ export declare const ListAttemptsDir: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * Sort direction. */ export type ListAttemptsDir = ClosedEnum; export type ListAttemptsRequest = { /** * Filter attempts by tenant ID(s). Use bracket notation for multiple values (e.g., `tenant_id[0]=t1&tenant_id[1]=t2`). * * @remarks * When authenticated with a Tenant JWT, this parameter is ignored and the JWT's tenant is used. * If not provided with API key auth, returns attempts from all tenants. */ tenantId?: string | Array | undefined; /** * Filter attempts by event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). */ eventId?: string | Array | undefined; /** * Filter attempts by destination ID(s). Use bracket notation for multiple values (e.g., `destination_id[0]=d1&destination_id[1]=d2`). */ destinationId?: string | Array | undefined; /** * Filter attempts by status. */ status?: ListAttemptsStatus | undefined; /** * Filter attempts by event topic(s). Use bracket notation for multiple values (e.g., `topic[0]=user.created&topic[1]=user.updated`). */ topic?: string | Array | undefined; /** * Filter attempts by event time >= value (RFC3339 or YYYY-MM-DD format). */ timeGte?: Date | undefined; /** * Filter attempts by event time <= value (RFC3339 or YYYY-MM-DD format). */ timeLte?: Date | undefined; /** * Filter attempts by event time > value (RFC3339 or YYYY-MM-DD format). */ timeGt?: Date | undefined; /** * Filter attempts by event time < value (RFC3339 or YYYY-MM-DD format). */ timeLt?: Date | undefined; /** * Number of items per page (default 100, max 1000). */ limit?: number | undefined; /** * Cursor for next page of results. */ next?: string | undefined; /** * Cursor for previous page of results. */ prev?: string | undefined; /** * Fields to include in the response. Use bracket notation for multiple values (e.g., `include[0]=event&include[1]=response_data`). * * @remarks * - `event`: Include event summary (id, topic, time, eligible_for_retry, metadata) * - `event.data`: Include full event with payload data * - `response_data`: Include response body and headers * - `destination`: Include the full destination object */ include?: string | Array | undefined; /** * Field to sort by. */ orderBy?: ListAttemptsOrderBy | undefined; /** * Sort direction. */ dir?: ListAttemptsDir | undefined; }; export type ListAttemptsResponse = { result: components.AttemptPaginatedResult; }; /** @internal */ export declare const ListAttemptsTenantId$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsTenantId$Outbound = string | Array; /** @internal */ export declare const ListAttemptsTenantId$outboundSchema: z.ZodType; export declare function listAttemptsTenantIdToJSON(listAttemptsTenantId: ListAttemptsTenantId): string; export declare function listAttemptsTenantIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsEventId$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsEventId$Outbound = string | Array; /** @internal */ export declare const ListAttemptsEventId$outboundSchema: z.ZodType; export declare function listAttemptsEventIdToJSON(listAttemptsEventId: ListAttemptsEventId): string; export declare function listAttemptsEventIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsDestinationId$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsDestinationId$Outbound = string | Array; /** @internal */ export declare const ListAttemptsDestinationId$outboundSchema: z.ZodType; export declare function listAttemptsDestinationIdToJSON(listAttemptsDestinationId: ListAttemptsDestinationId): string; export declare function listAttemptsDestinationIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsTopic$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsTopic$Outbound = string | Array; /** @internal */ export declare const ListAttemptsTopic$outboundSchema: z.ZodType; export declare function listAttemptsTopicToJSON(listAttemptsTopic: ListAttemptsTopic): string; export declare function listAttemptsTopicFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsInclude$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsInclude$Outbound = string | Array; /** @internal */ export declare const ListAttemptsInclude$outboundSchema: z.ZodType; export declare function listAttemptsIncludeToJSON(listAttemptsInclude: ListAttemptsInclude): string; export declare function listAttemptsIncludeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsOrderBy$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsOrderBy$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsDir$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsDir$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListAttemptsRequest$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsRequest$Outbound = { tenant_id?: string | Array | undefined; event_id?: string | Array | undefined; destination_id?: string | Array | undefined; status?: string | undefined; topic?: string | Array | undefined; "time[gte]"?: string | undefined; "time[lte]"?: string | undefined; "time[gt]"?: string | undefined; "time[lt]"?: string | undefined; limit: number; next?: string | undefined; prev?: string | undefined; include?: string | Array | undefined; order_by: string; dir: string; }; /** @internal */ export declare const ListAttemptsRequest$outboundSchema: z.ZodType; export declare function listAttemptsRequestToJSON(listAttemptsRequest: ListAttemptsRequest): string; export declare function listAttemptsRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListAttemptsResponse$inboundSchema: z.ZodType; /** @internal */ export type ListAttemptsResponse$Outbound = { Result: components.AttemptPaginatedResult$Outbound; }; /** @internal */ export declare const ListAttemptsResponse$outboundSchema: z.ZodType; export declare function listAttemptsResponseToJSON(listAttemptsResponse: ListAttemptsResponse): string; export declare function listAttemptsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listattempts.d.ts.map