import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type DynamicConfigFullUpdateDtoTargetValue = Array | Array | string | number; export declare const DynamicConfigFullUpdateDtoType: { 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 DynamicConfigFullUpdateDtoType = ClosedEnum; export type DynamicConfigFullUpdateDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: DynamicConfigFullUpdateDtoType; }; export type DynamicConfigFullUpdateDtoRules = { /** * 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 DynamicConfigFullUpdateDtoTargetApps = string | Array; export type DynamicConfigFullUpdateDto = { /** * Is the dynamic config enabled */ isEnabled?: boolean | undefined; /** * A brief summary of what the dynamic config is being used for */ description: string; /** * An array of Rule objects */ rules: Array; /** * 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; }; /** @internal */ export declare const DynamicConfigFullUpdateDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigFullUpdateDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const DynamicConfigFullUpdateDtoTargetValue$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 DynamicConfigFullUpdateDtoTargetValue$ { /** @deprecated use `DynamicConfigFullUpdateDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoTargetValue$Outbound` instead. */ type Outbound = DynamicConfigFullUpdateDtoTargetValue$Outbound; } /** @internal */ export declare const DynamicConfigFullUpdateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DynamicConfigFullUpdateDtoType$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 DynamicConfigFullUpdateDtoType$ { /** @deprecated use `DynamicConfigFullUpdateDtoType$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 `DynamicConfigFullUpdateDtoType$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 DynamicConfigFullUpdateDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigFullUpdateDtoConditions$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 DynamicConfigFullUpdateDtoConditions$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 DynamicConfigFullUpdateDtoConditions$ { /** @deprecated use `DynamicConfigFullUpdateDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoConditions$Outbound` instead. */ type Outbound = DynamicConfigFullUpdateDtoConditions$Outbound; } /** @internal */ export declare const DynamicConfigFullUpdateDtoRules$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigFullUpdateDtoRules$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 DynamicConfigFullUpdateDtoRules$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 DynamicConfigFullUpdateDtoRules$ { /** @deprecated use `DynamicConfigFullUpdateDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoRules$Outbound` instead. */ type Outbound = DynamicConfigFullUpdateDtoRules$Outbound; } /** @internal */ export declare const DynamicConfigFullUpdateDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigFullUpdateDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const DynamicConfigFullUpdateDtoTargetApps$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 DynamicConfigFullUpdateDtoTargetApps$ { /** @deprecated use `DynamicConfigFullUpdateDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDtoTargetApps$Outbound` instead. */ type Outbound = DynamicConfigFullUpdateDtoTargetApps$Outbound; } /** @internal */ export declare const DynamicConfigFullUpdateDto$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigFullUpdateDto$Outbound = { isEnabled: boolean; description: string; rules: Array; 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; }; /** @internal */ export declare const DynamicConfigFullUpdateDto$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 DynamicConfigFullUpdateDto$ { /** @deprecated use `DynamicConfigFullUpdateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigFullUpdateDto$Outbound` instead. */ type Outbound = DynamicConfigFullUpdateDto$Outbound; } //# sourceMappingURL=dynamicconfigfullupdatedto.d.ts.map