import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type Links = { /** * The URL of the link */ url: string; /** * The title of the link */ title?: string | undefined; }; export type Groups = { name: string; id?: any | null | undefined; size: number; parameterValues: { [k: string]: any; }; disabled?: boolean | undefined; description?: string | undefined; foreignGroupID?: string | undefined; }; export type PrimaryMetrics = { name: string; type: string; }; export type SecondaryMetrics = { name: string; type: string; }; /** * Target apps assigned to this experiment */ export type ExperimentCreateDtoTargetApps = string | Array; /** * Default error margin used for results */ export declare const DefaultConfidenceInterval: { readonly Eighty: "80"; readonly Ninety: "90"; readonly NinetyFive: "95"; readonly NinetyEight: "98"; readonly NinetyNine: "99"; }; /** * Default error margin used for results */ export type DefaultConfidenceInterval = ClosedEnum; /** * The current status of the experiment */ export declare const ExperimentCreateDtoStatus: { readonly Active: "active"; readonly Setup: "setup"; readonly DecisionMade: "decision_made"; readonly Abandoned: "abandoned"; readonly Archived: "archived"; }; /** * The current status of the experiment */ export type ExperimentCreateDtoStatus = ClosedEnum; export type ExperimentCreateDtoAllowedReviewers = { id: string; name: string; email: string; }; export type ExperimentCreateDtoReviewSettings = { requiredReview: boolean; allowedReviewers: Array | null; }; export type ExperimentCreateDtoActiveReview = { reviewID: string; reviewStatus: string; description: string; }; export type ExperimentCreateDto = { /** * A description of the new experiment */ description?: string | undefined; /** * The idType the experiment will be performed on */ idType?: string | undefined; /** * A statement that will be tested by this experiment */ hypothesis?: string | undefined; /** * Links to relevant documentation or resources */ links?: Array | undefined; /** * The test groups for your experiment */ groups?: Array | undefined; /** * Optional control group ID */ controlGroupID?: string | undefined; /** * Percent of layer allocated to this experiment */ allocation?: number | undefined; /** * Primary metric tags for the experiment */ primaryMetricTags?: Array | undefined; /** * Secondary metric tags for the experiment */ secondaryMetricTags?: Array | undefined; /** * Main metrics needed to evaluate your hypothesis */ primaryMetrics?: Array | undefined; /** * Additional metrics to monitor that might impact the analysis or final decision of the experiment */ secondaryMetrics?: Array | undefined; /** * Target apps assigned to this experiment */ targetApps?: string | Array | undefined; /** * Tags associated with the experiment */ tags?: Array | undefined; /** * How long the experiment is expected to last in days */ duration?: number | undefined; /** * Target exposures for the experiment */ targetExposures?: number | undefined; /** * Restrict your experiment to users passing the selected feature gate */ targetingGateID?: any | null | undefined; /** * Is Bonferroni correction applied? */ bonferroniCorrection?: boolean | undefined; /** * Default error margin used for results */ defaultConfidenceInterval?: DefaultConfidenceInterval | undefined; /** * The current status of the experiment */ status?: ExperimentCreateDtoStatus | undefined; /** * ID of the launched group, null otherwise */ launchedGroupID?: any | null | undefined; /** * Source name of the assignment */ assignmentSourceName?: string | undefined; /** * Name of the source experiment for assignment */ assignmentSourceExperimentName?: string | undefined; /** * The Statsig ID of the creator of this experiment */ creatorID?: any | null | undefined; /** * The email of the creator of this experiment */ creatorEmail?: any | null | undefined; /** * For Warehouse Native */ isAnalysisOnly?: any | null | undefined; /** * Enterprise only */ team?: any | null | undefined; /** * Allocation duration in days */ allocationDuration?: number | undefined; /** * Cohorted analysis duration in days */ cohortedAnalysisDuration?: number | undefined; /** * Fixed analysis duration in days */ fixedAnalysisDuration?: number | undefined; /** * The name of the new experiment */ name: string; id?: string | undefined; /** * Which layer to place the experiment into. */ layerID?: string | undefined; reviewSettings?: ExperimentCreateDtoReviewSettings | undefined; activeReview?: ExperimentCreateDtoActiveReview | undefined; }; /** @internal */ export declare const Links$inboundSchema: z.ZodType; /** @internal */ export type Links$Outbound = { url: string; title?: string | undefined; }; /** @internal */ export declare const Links$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 Links$ { /** @deprecated use `Links$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Links$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Links$Outbound` instead. */ type Outbound = Links$Outbound; } /** @internal */ export declare const Groups$inboundSchema: z.ZodType; /** @internal */ export type Groups$Outbound = { name: string; id?: any | null | undefined; size: number; parameterValues: { [k: string]: any; }; disabled?: boolean | undefined; description?: string | undefined; foreignGroupID?: string | undefined; }; /** @internal */ export declare const Groups$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 Groups$ { /** @deprecated use `Groups$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Groups$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Groups$Outbound` instead. */ type Outbound = Groups$Outbound; } /** @internal */ export declare const PrimaryMetrics$inboundSchema: z.ZodType; /** @internal */ export type PrimaryMetrics$Outbound = { name: string; type: string; }; /** @internal */ export declare const PrimaryMetrics$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 PrimaryMetrics$ { /** @deprecated use `PrimaryMetrics$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PrimaryMetrics$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PrimaryMetrics$Outbound` instead. */ type Outbound = PrimaryMetrics$Outbound; } /** @internal */ export declare const SecondaryMetrics$inboundSchema: z.ZodType; /** @internal */ export type SecondaryMetrics$Outbound = { name: string; type: string; }; /** @internal */ export declare const SecondaryMetrics$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 SecondaryMetrics$ { /** @deprecated use `SecondaryMetrics$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SecondaryMetrics$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SecondaryMetrics$Outbound` instead. */ type Outbound = SecondaryMetrics$Outbound; } /** @internal */ export declare const ExperimentCreateDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type ExperimentCreateDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const ExperimentCreateDtoTargetApps$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 ExperimentCreateDtoTargetApps$ { /** @deprecated use `ExperimentCreateDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoTargetApps$Outbound` instead. */ type Outbound = ExperimentCreateDtoTargetApps$Outbound; } /** @internal */ export declare const DefaultConfidenceInterval$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DefaultConfidenceInterval$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 DefaultConfidenceInterval$ { /** @deprecated use `DefaultConfidenceInterval$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Eighty: "80"; readonly Ninety: "90"; readonly NinetyFive: "95"; readonly NinetyEight: "98"; readonly NinetyNine: "99"; }>; /** @deprecated use `DefaultConfidenceInterval$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Eighty: "80"; readonly Ninety: "90"; readonly NinetyFive: "95"; readonly NinetyEight: "98"; readonly NinetyNine: "99"; }>; } /** @internal */ export declare const ExperimentCreateDtoStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ExperimentCreateDtoStatus$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 ExperimentCreateDtoStatus$ { /** @deprecated use `ExperimentCreateDtoStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Setup: "setup"; readonly DecisionMade: "decision_made"; readonly Abandoned: "abandoned"; readonly Archived: "archived"; }>; /** @deprecated use `ExperimentCreateDtoStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Setup: "setup"; readonly DecisionMade: "decision_made"; readonly Abandoned: "abandoned"; readonly Archived: "archived"; }>; } /** @internal */ export declare const ExperimentCreateDtoAllowedReviewers$inboundSchema: z.ZodType; /** @internal */ export type ExperimentCreateDtoAllowedReviewers$Outbound = { id: string; name: string; email: string; }; /** @internal */ export declare const ExperimentCreateDtoAllowedReviewers$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 ExperimentCreateDtoAllowedReviewers$ { /** @deprecated use `ExperimentCreateDtoAllowedReviewers$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoAllowedReviewers$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoAllowedReviewers$Outbound` instead. */ type Outbound = ExperimentCreateDtoAllowedReviewers$Outbound; } /** @internal */ export declare const ExperimentCreateDtoReviewSettings$inboundSchema: z.ZodType; /** @internal */ export type ExperimentCreateDtoReviewSettings$Outbound = { requiredReview: boolean; allowedReviewers: Array | null; }; /** @internal */ export declare const ExperimentCreateDtoReviewSettings$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 ExperimentCreateDtoReviewSettings$ { /** @deprecated use `ExperimentCreateDtoReviewSettings$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoReviewSettings$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoReviewSettings$Outbound` instead. */ type Outbound = ExperimentCreateDtoReviewSettings$Outbound; } /** @internal */ export declare const ExperimentCreateDtoActiveReview$inboundSchema: z.ZodType; /** @internal */ export type ExperimentCreateDtoActiveReview$Outbound = { reviewID: string; reviewStatus: string; description: string; }; /** @internal */ export declare const ExperimentCreateDtoActiveReview$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 ExperimentCreateDtoActiveReview$ { /** @deprecated use `ExperimentCreateDtoActiveReview$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoActiveReview$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDtoActiveReview$Outbound` instead. */ type Outbound = ExperimentCreateDtoActiveReview$Outbound; } /** @internal */ export declare const ExperimentCreateDto$inboundSchema: z.ZodType; /** @internal */ export type ExperimentCreateDto$Outbound = { description?: string | undefined; idType?: string | undefined; hypothesis?: string | undefined; links?: Array | undefined; groups?: Array | undefined; controlGroupID?: string | undefined; allocation?: number | undefined; primaryMetricTags?: Array | undefined; secondaryMetricTags?: Array | undefined; primaryMetrics?: Array | undefined; secondaryMetrics?: Array | undefined; targetApps?: string | Array | undefined; tags?: Array | undefined; duration?: number | undefined; targetExposures?: number | undefined; targetingGateID?: any | null | undefined; bonferroniCorrection?: boolean | undefined; defaultConfidenceInterval?: string | undefined; status?: string | undefined; launchedGroupID?: any | null | undefined; assignmentSourceName?: string | undefined; assignmentSourceExperimentName?: string | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; isAnalysisOnly?: any | null | undefined; team?: any | null | undefined; allocationDuration?: number | undefined; cohortedAnalysisDuration?: number | undefined; fixedAnalysisDuration?: number | undefined; name: string; id?: string | undefined; layerID?: string | undefined; reviewSettings?: ExperimentCreateDtoReviewSettings$Outbound | undefined; activeReview?: ExperimentCreateDtoActiveReview$Outbound | undefined; }; /** @internal */ export declare const ExperimentCreateDto$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 ExperimentCreateDto$ { /** @deprecated use `ExperimentCreateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExperimentCreateDto$Outbound` instead. */ type Outbound = ExperimentCreateDto$Outbound; } //# sourceMappingURL=experimentcreatedto.d.ts.map