import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type DynamicConfigRuleAddDtoTargetValue = Array | Array | string | number; export declare const DynamicConfigRuleAddDtoType: { readonly AppVersion: "app_version"; readonly BrowserName: "browser_name"; readonly BrowserVersion: "browser_version"; readonly Country: "country"; readonly CustomField: "custom_field"; readonly Email: "email"; readonly EnvironmentTier: "environment_tier"; readonly FailsGate: "fails_gate"; readonly FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly Locale: "locale"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesGate: "passes_gate"; readonly PassesSegment: "passes_segment"; readonly Public: "public"; readonly Time: "time"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; readonly Url: "url"; readonly Javascript: "javascript"; readonly DeviceModel: "device_model"; readonly TargetApp: "target_app"; }; export type DynamicConfigRuleAddDtoType = ClosedEnum; export type DynamicConfigRuleAddDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: DynamicConfigRuleAddDtoType; }; export type DynamicConfigRuleAddDto = { /** * The name of this rule. */ name: string; /** * Of the users that meet the conditions of this rule, what percent should return true. */ passPercentage: number; /** * An array of Condition objects. */ conditions: Array; environments?: Array | null | undefined; /** * The Statsig ID of this rule. */ id?: string | undefined; /** * The base ID of this rule, i.e. without any added metadata. Will remain the exact same throughout */ baseID?: string | undefined; returnValue?: { [k: string]: any; } | undefined; returnValueJson5?: string | undefined; }; /** @internal */ export declare const DynamicConfigRuleAddDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigRuleAddDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const DynamicConfigRuleAddDtoTargetValue$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 DynamicConfigRuleAddDtoTargetValue$ { /** @deprecated use `DynamicConfigRuleAddDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDtoTargetValue$Outbound` instead. */ type Outbound = DynamicConfigRuleAddDtoTargetValue$Outbound; } /** @internal */ export declare const DynamicConfigRuleAddDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DynamicConfigRuleAddDtoType$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 DynamicConfigRuleAddDtoType$ { /** @deprecated use `DynamicConfigRuleAddDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly AppVersion: "app_version"; readonly BrowserName: "browser_name"; readonly BrowserVersion: "browser_version"; readonly Country: "country"; readonly CustomField: "custom_field"; readonly Email: "email"; readonly EnvironmentTier: "environment_tier"; readonly FailsGate: "fails_gate"; readonly FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly Locale: "locale"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesGate: "passes_gate"; readonly PassesSegment: "passes_segment"; readonly Public: "public"; readonly Time: "time"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; readonly Url: "url"; readonly Javascript: "javascript"; readonly DeviceModel: "device_model"; readonly TargetApp: "target_app"; }>; /** @deprecated use `DynamicConfigRuleAddDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly AppVersion: "app_version"; readonly BrowserName: "browser_name"; readonly BrowserVersion: "browser_version"; readonly Country: "country"; readonly CustomField: "custom_field"; readonly Email: "email"; readonly EnvironmentTier: "environment_tier"; readonly FailsGate: "fails_gate"; readonly FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly Locale: "locale"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesGate: "passes_gate"; readonly PassesSegment: "passes_segment"; readonly Public: "public"; readonly Time: "time"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; readonly Url: "url"; readonly Javascript: "javascript"; readonly DeviceModel: "device_model"; readonly TargetApp: "target_app"; }>; } /** @internal */ export declare const DynamicConfigRuleAddDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigRuleAddDtoConditions$Outbound = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: string; }; /** @internal */ export declare const DynamicConfigRuleAddDtoConditions$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 DynamicConfigRuleAddDtoConditions$ { /** @deprecated use `DynamicConfigRuleAddDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDtoConditions$Outbound` instead. */ type Outbound = DynamicConfigRuleAddDtoConditions$Outbound; } /** @internal */ export declare const DynamicConfigRuleAddDto$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigRuleAddDto$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; returnValue?: { [k: string]: any; } | undefined; returnValueJson5?: string | undefined; }; /** @internal */ export declare const DynamicConfigRuleAddDto$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 DynamicConfigRuleAddDto$ { /** @deprecated use `DynamicConfigRuleAddDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigRuleAddDto$Outbound` instead. */ type Outbound = DynamicConfigRuleAddDto$Outbound; } //# sourceMappingURL=dynamicconfigruleadddto.d.ts.map