import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type DynamicConfigCreateDtoTargetValue = Array | Array | string | number; export declare const DynamicConfigCreateDtoType: { 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 DynamicConfigCreateDtoType = ClosedEnum; export type DynamicConfigCreateDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: DynamicConfigCreateDtoType; }; export type Rules = { /** * 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; }; export type TargetApps = string | Array; export type DynamicConfigCreateDto = { /** * Is the dynamic config enabled */ isEnabled?: boolean | undefined; description?: string | undefined; /** * An array of Rule objects */ rules?: Array | undefined; /** * The fallback JSON object when no rules are triggered */ defaultValue?: { [k: string]: any; } | undefined; /** * Can include comments. If provided with defaultValue, must parse to the same JSON */ defaultValueJson5?: string | undefined; /** * The type of ID which the dynamic config is based on. */ idType?: string | undefined; /** * The list of tag names attached to the dynamic config */ tags?: Array | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; /** * A schema using JSON Schema Draft 2020-12 to enforce return values of this dynamic config's rules. */ schema?: any | null | undefined; /** * `schema` except with Json5 comments. Optional and should parse to same json as `schema`. */ schemaJson5?: any | null | undefined; targetApps?: string | Array | undefined; team?: any | null | undefined; name: string; id?: string | undefined; }; /** @internal */ export declare const DynamicConfigCreateDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigCreateDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const DynamicConfigCreateDtoTargetValue$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 DynamicConfigCreateDtoTargetValue$ { /** @deprecated use `DynamicConfigCreateDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDtoTargetValue$Outbound` instead. */ type Outbound = DynamicConfigCreateDtoTargetValue$Outbound; } /** @internal */ export declare const DynamicConfigCreateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DynamicConfigCreateDtoType$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 DynamicConfigCreateDtoType$ { /** @deprecated use `DynamicConfigCreateDtoType$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 `DynamicConfigCreateDtoType$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 DynamicConfigCreateDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigCreateDtoConditions$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 DynamicConfigCreateDtoConditions$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 DynamicConfigCreateDtoConditions$ { /** @deprecated use `DynamicConfigCreateDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDtoConditions$Outbound` instead. */ type Outbound = DynamicConfigCreateDtoConditions$Outbound; } /** @internal */ export declare const Rules$inboundSchema: z.ZodType; /** @internal */ export type Rules$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 Rules$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 Rules$ { /** @deprecated use `Rules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Rules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Rules$Outbound` instead. */ type Outbound = Rules$Outbound; } /** @internal */ export declare const TargetApps$inboundSchema: z.ZodType; /** @internal */ export type TargetApps$Outbound = string | Array; /** @internal */ export declare const TargetApps$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 TargetApps$ { /** @deprecated use `TargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TargetApps$Outbound` instead. */ type Outbound = TargetApps$Outbound; } /** @internal */ export declare const DynamicConfigCreateDto$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigCreateDto$Outbound = { isEnabled: boolean; description?: string | undefined; rules?: Array | undefined; defaultValue?: { [k: string]: any; } | undefined; defaultValueJson5?: string | undefined; idType?: string | undefined; tags?: Array | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; schema?: any | null | undefined; schemaJson5?: any | null | undefined; targetApps?: string | Array | undefined; team?: any | null | undefined; name: string; id?: string | undefined; }; /** @internal */ export declare const DynamicConfigCreateDto$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 DynamicConfigCreateDto$ { /** @deprecated use `DynamicConfigCreateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigCreateDto$Outbound` instead. */ type Outbound = DynamicConfigCreateDto$Outbound; } //# sourceMappingURL=dynamicconfigcreatedto.d.ts.map