import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Mode } from "./mode.js"; import { OccurrenceStatus } from "./occurrencestatus.js"; import { RunTransfer, RunTransfer$Outbound } from "./runtransfer.js"; /** * Contains details on why the occurrence errored. */ export type ErrorT = { message?: string | undefined; }; export type OccurrencesResponse = { scheduleID?: string | undefined; occurrenceID?: string | undefined; /** * Sandbox or production account mode of this schedule. */ mode?: Mode | undefined; /** * True if this was generated by a RRule. */ generated?: boolean | undefined; /** * True if the RRule set runs indefinitely. */ indefinite?: boolean | undefined; canceledOn?: Date | undefined; runOn: Date; runTransfer: RunTransfer; ranOn?: Date | undefined; ranTransferID?: string | undefined; /** * Status of the completed occurrence. */ status?: OccurrenceStatus | undefined; /** * Contains details on why the occurrence errored. */ error?: ErrorT | undefined; }; /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType; /** @internal */ export type ErrorT$Outbound = { message?: string | undefined; }; /** @internal */ export declare const ErrorT$outboundSchema: z.ZodType; export declare function errorToJSON(errorT: ErrorT): string; export declare function errorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OccurrencesResponse$inboundSchema: z.ZodType; /** @internal */ export type OccurrencesResponse$Outbound = { scheduleID?: string | undefined; occurrenceID?: string | undefined; mode?: string | undefined; generated?: boolean | undefined; indefinite?: boolean | undefined; canceledOn?: string | undefined; runOn: string; runTransfer: RunTransfer$Outbound; ranOn?: string | undefined; ranTransferID?: string | undefined; status?: string | undefined; error?: ErrorT$Outbound | undefined; }; /** @internal */ export declare const OccurrencesResponse$outboundSchema: z.ZodType; export declare function occurrencesResponseToJSON(occurrencesResponse: OccurrencesResponse): string; export declare function occurrencesResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=occurrencesresponse.d.ts.map