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"; import { LookBackWindowDto, LookBackWindowDto$Outbound } from "./lookbackwindowdto.js"; /** * The type of digest strategy. Determines which fields are applicable. */ export declare const DigestControlDtoType: { readonly Regular: "regular"; readonly Timed: "timed"; }; /** * The type of digest strategy. Determines which fields are applicable. */ export type DigestControlDtoType = ClosedEnum; /** * The unit of time for the digest interval (for REGULAR type). */ export declare const DigestControlDtoUnit: { readonly Seconds: "seconds"; readonly Minutes: "minutes"; readonly Hours: "hours"; readonly Days: "days"; readonly Weeks: "weeks"; readonly Months: "months"; }; /** * The unit of time for the digest interval (for REGULAR type). */ export type DigestControlDtoUnit = ClosedEnum; export type DigestControlDto = { /** * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference. */ skip?: { [k: string]: any; } | undefined; /** * The type of digest strategy. Determines which fields are applicable. */ type?: DigestControlDtoType | undefined; /** * The amount of time for the digest interval (for REGULAR type). Min 1. */ amount?: number | undefined; /** * The unit of time for the digest interval (for REGULAR type). */ unit?: DigestControlDtoUnit | undefined; /** * Configuration for look-back window (for REGULAR type). */ lookBackWindow?: LookBackWindowDto | undefined; /** * Cron expression for TIMED digest. Min length 1. */ cron?: string | undefined; /** * Specify a custom key for digesting events instead of the default event key. */ digestKey?: string | undefined; }; /** @internal */ export declare const DigestControlDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DigestControlDtoType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DigestControlDtoUnit$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DigestControlDtoUnit$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DigestControlDto$inboundSchema: z.ZodType; /** @internal */ export type DigestControlDto$Outbound = { skip?: { [k: string]: any; } | undefined; type?: string | undefined; amount?: number | undefined; unit?: string | undefined; lookBackWindow?: LookBackWindowDto$Outbound | undefined; cron?: string | undefined; digestKey?: string | undefined; }; /** @internal */ export declare const DigestControlDto$outboundSchema: z.ZodType; export declare function digestControlDtoToJSON(digestControlDto: DigestControlDto): string; export declare function digestControlDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=digestcontroldto.d.ts.map