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"; /** * The type of throttle window. */ export declare const ThrottleControlDtoType: { readonly Fixed: "fixed"; readonly Dynamic: "dynamic"; }; /** * The type of throttle window. */ export type ThrottleControlDtoType = ClosedEnum; /** * The unit of time for the throttle window (required for fixed type). */ export declare const ThrottleControlDtoUnit: { readonly Minutes: "minutes"; readonly Hours: "hours"; readonly Days: "days"; }; /** * The unit of time for the throttle window (required for fixed type). */ export type ThrottleControlDtoUnit = ClosedEnum; export type ThrottleControlDto = { /** * 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 throttle window. */ type?: ThrottleControlDtoType | undefined; /** * The amount of time for the throttle window (required for fixed type). */ amount?: number | undefined; /** * The unit of time for the throttle window (required for fixed type). */ unit?: ThrottleControlDtoUnit | undefined; /** * Key path to retrieve dynamic window value (required for dynamic type). */ dynamicKey?: string | undefined; /** * The maximum number of executions allowed within the window. Defaults to 1. */ threshold?: number | undefined; /** * Optional key for grouping throttle rules. If not provided, defaults to workflow and subscriber combination. */ throttleKey?: string | undefined; }; /** @internal */ export declare const ThrottleControlDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ThrottleControlDtoType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ThrottleControlDtoUnit$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ThrottleControlDtoUnit$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ThrottleControlDto$inboundSchema: z.ZodType; /** @internal */ export type ThrottleControlDto$Outbound = { skip?: { [k: string]: any; } | undefined; type: string; amount?: number | undefined; unit?: string | undefined; dynamicKey?: string | undefined; threshold: number; throttleKey?: string | undefined; }; /** @internal */ export declare const ThrottleControlDto$outboundSchema: z.ZodType; export declare function throttleControlDtoToJSON(throttleControlDto: ThrottleControlDto): string; export declare function throttleControlDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=throttlecontroldto.d.ts.map