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 event ID(s). Use bracket notation for multiple values (e.g., `event_id[0]=e1&event_id[1]=e2`). */ export type ListTenantDestinationAttemptsEventId = string | Array; /** * Filter attempts by status. */ export declare const ListTenantDestinationAttemptsStatus: { readonly Success: "success"; readonly Failed: "failed"; }; /** * Filter attempts by status. */ export type ListTenantDestinationAttemptsStatus = 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 ListTenantDestinationAttemptsTopic = 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 ListTenantDestinationAttemptsInclude = string | Array; /** * Field to sort by. */ export declare const ListTenantDestinationAttemptsOrderBy: { readonly Time: "time"; }; /** * Field to sort by. */ export type ListTenantDestinationAttemptsOrderBy = ClosedEnum; /** * Sort direction. */ export declare const ListTenantDestinationAttemptsDir: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * Sort direction. */ export type ListTenantDestinationAttemptsDir = ClosedEnum; export type ListTenantDestinationAttemptsRequest = { /** * The ID of the tenant. Required when using AdminApiKey authentication. */ tenantId: string; /** * The ID of the destination. */ destinationId: string; /** * 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 status. */ status?: ListTenantDestinationAttemptsStatus | 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?: ListTenantDestinationAttemptsOrderBy | undefined; /** * Sort direction. */ dir?: ListTenantDestinationAttemptsDir | undefined; }; export type ListTenantDestinationAttemptsResponse = { result: components.AttemptPaginatedResult; }; /** @internal */ export declare const ListTenantDestinationAttemptsEventId$inboundSchema: z.ZodType; /** @internal */ export type ListTenantDestinationAttemptsEventId$Outbound = string | Array; /** @internal */ export declare const ListTenantDestinationAttemptsEventId$outboundSchema: z.ZodType; export declare function listTenantDestinationAttemptsEventIdToJSON(listTenantDestinationAttemptsEventId: ListTenantDestinationAttemptsEventId): string; export declare function listTenantDestinationAttemptsEventIdFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListTenantDestinationAttemptsStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsTopic$inboundSchema: z.ZodType; /** @internal */ export type ListTenantDestinationAttemptsTopic$Outbound = string | Array; /** @internal */ export declare const ListTenantDestinationAttemptsTopic$outboundSchema: z.ZodType; export declare function listTenantDestinationAttemptsTopicToJSON(listTenantDestinationAttemptsTopic: ListTenantDestinationAttemptsTopic): string; export declare function listTenantDestinationAttemptsTopicFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListTenantDestinationAttemptsInclude$inboundSchema: z.ZodType; /** @internal */ export type ListTenantDestinationAttemptsInclude$Outbound = string | Array; /** @internal */ export declare const ListTenantDestinationAttemptsInclude$outboundSchema: z.ZodType; export declare function listTenantDestinationAttemptsIncludeToJSON(listTenantDestinationAttemptsInclude: ListTenantDestinationAttemptsInclude): string; export declare function listTenantDestinationAttemptsIncludeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListTenantDestinationAttemptsOrderBy$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsOrderBy$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsDir$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsDir$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ListTenantDestinationAttemptsRequest$inboundSchema: z.ZodType; /** @internal */ export type ListTenantDestinationAttemptsRequest$Outbound = { tenant_id: string; destination_id: string; event_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 ListTenantDestinationAttemptsRequest$outboundSchema: z.ZodType; export declare function listTenantDestinationAttemptsRequestToJSON(listTenantDestinationAttemptsRequest: ListTenantDestinationAttemptsRequest): string; export declare function listTenantDestinationAttemptsRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListTenantDestinationAttemptsResponse$inboundSchema: z.ZodType; /** @internal */ export type ListTenantDestinationAttemptsResponse$Outbound = { Result: components.AttemptPaginatedResult$Outbound; }; /** @internal */ export declare const ListTenantDestinationAttemptsResponse$outboundSchema: z.ZodType; export declare function listTenantDestinationAttemptsResponseToJSON(listTenantDestinationAttemptsResponse: ListTenantDestinationAttemptsResponse): string; export declare function listTenantDestinationAttemptsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listtenantdestinationattempts.d.ts.map