import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; /** * An array of Variant objects */ export type Variants = { /** * Variant name */ name: string; /** * Variant JSON data */ json?: any | undefined; }; /** * The initial time period where Autotune will equally split the traffic. */ export declare const ExplorationWindow: { readonly Onehr: "1hr"; readonly TwentyFourhr: "24hr"; readonly FortyEighthr: "48hr"; readonly One: "1"; readonly TwentyFour: "24"; readonly FortyEight: "48"; readonly Onehrs: "1hrs"; readonly TwentyFourhrs: "24hrs"; readonly FortyEighthrs: "48hrs"; }; /** * The initial time period where Autotune will equally split the traffic. */ export type ExplorationWindow = ClosedEnum; /** * The maximum duration between the exposure and success event that counts as a success. */ export declare const AttributionWindow: { readonly Onehr: "1hr"; readonly Twohr: "2hr"; readonly Fourhr: "4hr"; readonly TwentyFourhr: "24hr"; readonly Onehrs: "1hrs"; readonly Twohrs: "2hrs"; readonly Fourhrs: "4hrs"; readonly TwentyFourhrs: "24hrs"; readonly One: "1"; readonly Two: "2"; readonly Four: "4"; readonly TwentyFour: "24"; }; /** * The maximum duration between the exposure and success event that counts as a success. */ export type AttributionWindow = ClosedEnum; /** * The "probability of best" threshold a variant needs to achieve for Autotune to declare it the winner, stop collecting data, and direct all traffic. */ export declare const WinnerThreshold: { readonly EightyPercent: "80%"; readonly NinetyPercent: "90%"; readonly NinetyFivePercent: "95%"; readonly NinetyEightPercent: "98%"; readonly NinetyNinePercent: "99%"; }; /** * The "probability of best" threshold a variant needs to achieve for Autotune to declare it the winner, stop collecting data, and direct all traffic. */ export type WinnerThreshold = ClosedEnum; export type AutotuneCreateDto = { /** * A brief summary of what the autotune is being used for. */ description?: string | undefined; /** * An array of Variant objects. */ variants: Array; /** * The event you are trying to optimize for. */ successEvent: string; /** * The value that should come with the event for it to be considered successful. */ successEventValue?: string | undefined; /** * The initial time period where Autotune will equally split the traffic. */ explorationWindow: ExplorationWindow; /** * The maximum duration between the exposure and success event that counts as a success. */ attributionWindow: AttributionWindow; /** * The "probability of best" threshold a variant needs to achieve for Autotune to declare it the winner, stop collecting data, and direct all traffic. */ winnerThreshold: WinnerThreshold; /** * The name that was originally given to the autotune on creation but formatted as an ID ("A Autotune" -> "a_autotune"). */ name: string; /** * idType of the autotune (userID, stableID, or a customID). Defaults to userID if not provided */ idType?: string | undefined; }; /** @internal */ export declare const Variants$inboundSchema: z.ZodType; /** @internal */ export type Variants$Outbound = { name: string; json?: any | undefined; }; /** @internal */ export declare const Variants$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Variants$ { /** @deprecated use `Variants$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Variants$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Variants$Outbound` instead. */ type Outbound = Variants$Outbound; } /** @internal */ export declare const ExplorationWindow$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ExplorationWindow$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ExplorationWindow$ { /** @deprecated use `ExplorationWindow$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Onehr: "1hr"; readonly TwentyFourhr: "24hr"; readonly FortyEighthr: "48hr"; readonly One: "1"; readonly TwentyFour: "24"; readonly FortyEight: "48"; readonly Onehrs: "1hrs"; readonly TwentyFourhrs: "24hrs"; readonly FortyEighthrs: "48hrs"; }>; /** @deprecated use `ExplorationWindow$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Onehr: "1hr"; readonly TwentyFourhr: "24hr"; readonly FortyEighthr: "48hr"; readonly One: "1"; readonly TwentyFour: "24"; readonly FortyEight: "48"; readonly Onehrs: "1hrs"; readonly TwentyFourhrs: "24hrs"; readonly FortyEighthrs: "48hrs"; }>; } /** @internal */ export declare const AttributionWindow$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AttributionWindow$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AttributionWindow$ { /** @deprecated use `AttributionWindow$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Onehr: "1hr"; readonly Twohr: "2hr"; readonly Fourhr: "4hr"; readonly TwentyFourhr: "24hr"; readonly Onehrs: "1hrs"; readonly Twohrs: "2hrs"; readonly Fourhrs: "4hrs"; readonly TwentyFourhrs: "24hrs"; readonly One: "1"; readonly Two: "2"; readonly Four: "4"; readonly TwentyFour: "24"; }>; /** @deprecated use `AttributionWindow$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Onehr: "1hr"; readonly Twohr: "2hr"; readonly Fourhr: "4hr"; readonly TwentyFourhr: "24hr"; readonly Onehrs: "1hrs"; readonly Twohrs: "2hrs"; readonly Fourhrs: "4hrs"; readonly TwentyFourhrs: "24hrs"; readonly One: "1"; readonly Two: "2"; readonly Four: "4"; readonly TwentyFour: "24"; }>; } /** @internal */ export declare const WinnerThreshold$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const WinnerThreshold$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WinnerThreshold$ { /** @deprecated use `WinnerThreshold$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly EightyPercent: "80%"; readonly NinetyPercent: "90%"; readonly NinetyFivePercent: "95%"; readonly NinetyEightPercent: "98%"; readonly NinetyNinePercent: "99%"; }>; /** @deprecated use `WinnerThreshold$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly EightyPercent: "80%"; readonly NinetyPercent: "90%"; readonly NinetyFivePercent: "95%"; readonly NinetyEightPercent: "98%"; readonly NinetyNinePercent: "99%"; }>; } /** @internal */ export declare const AutotuneCreateDto$inboundSchema: z.ZodType; /** @internal */ export type AutotuneCreateDto$Outbound = { description?: string | undefined; variants: Array; successEvent: string; successEventValue?: string | undefined; explorationWindow: string; attributionWindow: string; winnerThreshold: string; name: string; idType?: string | undefined; }; /** @internal */ export declare const AutotuneCreateDto$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AutotuneCreateDto$ { /** @deprecated use `AutotuneCreateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AutotuneCreateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AutotuneCreateDto$Outbound` instead. */ type Outbound = AutotuneCreateDto$Outbound; } //# sourceMappingURL=autotunecreatedto.d.ts.map