import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type AutotuneExperimentDtoVariants = { /** * Variant name */ name: string; /** * Variant JSON data */ json?: any | undefined; /** * The name that was originally given to the autotune on creation but formatted as an ID ("A Autotune" -> "a_autotune"). */ id: string; }; /** * The initial time period where Autotune will equally split the traffic. */ export declare const AutotuneExperimentDtoExplorationWindow: { 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 AutotuneExperimentDtoExplorationWindow = ClosedEnum; /** * The maximum duration between the exposure and success event that counts as a success. */ export declare const AutotuneExperimentDtoAttributionWindow: { 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 AutotuneExperimentDtoAttributionWindow = 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 AutotuneExperimentDtoWinnerThreshold: { 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 AutotuneExperimentDtoWinnerThreshold = ClosedEnum; export type Winner = { /** * The Statsig UserID of the last modifier of this autotune. */ id: string; /** * The Statsig Username of the last modifier of this autotune. */ name: string; }; export type AutotuneExperimentDto = { /** * Detailed description of the configuration’s purpose. */ description: string; 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; /** * The initial time period where Autotune will equally split the traffic. */ explorationWindow: AutotuneExperimentDtoExplorationWindow; /** * The maximum duration between the exposure and success event that counts as a success. */ attributionWindow: AutotuneExperimentDtoAttributionWindow; /** * 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: AutotuneExperimentDtoWinnerThreshold; /** * ID */ id: string; /** * Optional name for the configuration. */ name?: string | undefined; /** * Type of ID */ idType: string; /** * ID of the last modifier. */ lastModifierID?: any | null | undefined; /** * Time of the last modification. */ lastModifiedTime?: any | null | undefined; /** * Email of the last modifier. */ lastModifierEmail?: any | null | undefined; /** * Name of the last modifier. */ lastModifierName?: any | null | undefined; /** * ID of the user who created the entity. */ creatorID?: any | null | undefined; /** * Timestamp when the entity was created. */ createdTime: number; /** * Name of the creator. */ creatorName?: any | null | undefined; /** * Email of the creator. */ creatorEmail?: any | null | undefined; /** * Optional tags for categorization. */ tags?: Array | undefined; /** * List of target applications associated with this configuration. */ targetApps?: Array | undefined; /** * Holdouts applied to this configuration. */ holdoutIDs?: Array | undefined; /** * Optional identifier for the responsible team. */ team?: any | null | undefined; /** * Is the autotune experiment currently running. */ isStarted: boolean; winner: Winner | null; }; /** @internal */ export declare const AutotuneExperimentDtoVariants$inboundSchema: z.ZodType; /** @internal */ export type AutotuneExperimentDtoVariants$Outbound = { name: string; json?: any | undefined; id: string; }; /** @internal */ export declare const AutotuneExperimentDtoVariants$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 AutotuneExperimentDtoVariants$ { /** @deprecated use `AutotuneExperimentDtoVariants$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AutotuneExperimentDtoVariants$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AutotuneExperimentDtoVariants$Outbound` instead. */ type Outbound = AutotuneExperimentDtoVariants$Outbound; } /** @internal */ export declare const AutotuneExperimentDtoExplorationWindow$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AutotuneExperimentDtoExplorationWindow$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 AutotuneExperimentDtoExplorationWindow$ { /** @deprecated use `AutotuneExperimentDtoExplorationWindow$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 `AutotuneExperimentDtoExplorationWindow$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 AutotuneExperimentDtoAttributionWindow$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AutotuneExperimentDtoAttributionWindow$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 AutotuneExperimentDtoAttributionWindow$ { /** @deprecated use `AutotuneExperimentDtoAttributionWindow$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 `AutotuneExperimentDtoAttributionWindow$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 AutotuneExperimentDtoWinnerThreshold$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AutotuneExperimentDtoWinnerThreshold$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 AutotuneExperimentDtoWinnerThreshold$ { /** @deprecated use `AutotuneExperimentDtoWinnerThreshold$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly EightyPercent: "80%"; readonly NinetyPercent: "90%"; readonly NinetyFivePercent: "95%"; readonly NinetyEightPercent: "98%"; readonly NinetyNinePercent: "99%"; }>; /** @deprecated use `AutotuneExperimentDtoWinnerThreshold$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 Winner$inboundSchema: z.ZodType; /** @internal */ export type Winner$Outbound = { id: string; name: string; }; /** @internal */ export declare const Winner$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 Winner$ { /** @deprecated use `Winner$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Winner$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Winner$Outbound` instead. */ type Outbound = Winner$Outbound; } /** @internal */ export declare const AutotuneExperimentDto$inboundSchema: z.ZodType; /** @internal */ export type AutotuneExperimentDto$Outbound = { description: string; variants: Array; successEvent: string; successEventValue: string; explorationWindow: string; attributionWindow: string; winnerThreshold: string; id: string; name?: string | undefined; idType: string; lastModifierID?: any | null | undefined; lastModifiedTime?: any | null | undefined; lastModifierEmail?: any | null | undefined; lastModifierName?: any | null | undefined; creatorID?: any | null | undefined; createdTime: number; creatorName?: any | null | undefined; creatorEmail?: any | null | undefined; tags?: Array | undefined; targetApps?: Array | undefined; holdoutIDs?: Array | undefined; team?: any | null | undefined; isStarted: boolean; winner: Winner$Outbound | null; }; /** @internal */ export declare const AutotuneExperimentDto$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 AutotuneExperimentDto$ { /** @deprecated use `AutotuneExperimentDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AutotuneExperimentDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AutotuneExperimentDto$Outbound` instead. */ type Outbound = AutotuneExperimentDto$Outbound; } //# sourceMappingURL=autotuneexperimentdto.d.ts.map