import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type DynamicConfigPartialUpdateDtoTargetValue = Array | Array | string | number; export declare const DynamicConfigPartialUpdateDtoType: { 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 DynamicConfigPartialUpdateDtoType = ClosedEnum; export type DynamicConfigPartialUpdateDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: DynamicConfigPartialUpdateDtoType; }; export type DynamicConfigPartialUpdateDtoRules = { /** * 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 DynamicConfigPartialUpdateDtoTargetApps = string | Array; export type DynamicConfigPartialUpdateDto = { /** * Is the dynamic config enabled */ isEnabled?: boolean | undefined; /** * A brief summary of what the dynamic config is being used for */ 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; }; /** @internal */ export declare const DynamicConfigPartialUpdateDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigPartialUpdateDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const DynamicConfigPartialUpdateDtoTargetValue$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 DynamicConfigPartialUpdateDtoTargetValue$ { /** @deprecated use `DynamicConfigPartialUpdateDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoTargetValue$Outbound` instead. */ type Outbound = DynamicConfigPartialUpdateDtoTargetValue$Outbound; } /** @internal */ export declare const DynamicConfigPartialUpdateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DynamicConfigPartialUpdateDtoType$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 DynamicConfigPartialUpdateDtoType$ { /** @deprecated use `DynamicConfigPartialUpdateDtoType$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 `DynamicConfigPartialUpdateDtoType$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 DynamicConfigPartialUpdateDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigPartialUpdateDtoConditions$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 DynamicConfigPartialUpdateDtoConditions$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 DynamicConfigPartialUpdateDtoConditions$ { /** @deprecated use `DynamicConfigPartialUpdateDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoConditions$Outbound` instead. */ type Outbound = DynamicConfigPartialUpdateDtoConditions$Outbound; } /** @internal */ export declare const DynamicConfigPartialUpdateDtoRules$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigPartialUpdateDtoRules$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 DynamicConfigPartialUpdateDtoRules$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 DynamicConfigPartialUpdateDtoRules$ { /** @deprecated use `DynamicConfigPartialUpdateDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoRules$Outbound` instead. */ type Outbound = DynamicConfigPartialUpdateDtoRules$Outbound; } /** @internal */ export declare const DynamicConfigPartialUpdateDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigPartialUpdateDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const DynamicConfigPartialUpdateDtoTargetApps$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 DynamicConfigPartialUpdateDtoTargetApps$ { /** @deprecated use `DynamicConfigPartialUpdateDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDtoTargetApps$Outbound` instead. */ type Outbound = DynamicConfigPartialUpdateDtoTargetApps$Outbound; } /** @internal */ export declare const DynamicConfigPartialUpdateDto$inboundSchema: z.ZodType; /** @internal */ export type DynamicConfigPartialUpdateDto$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; }; /** @internal */ export declare const DynamicConfigPartialUpdateDto$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 DynamicConfigPartialUpdateDto$ { /** @deprecated use `DynamicConfigPartialUpdateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DynamicConfigPartialUpdateDto$Outbound` instead. */ type Outbound = DynamicConfigPartialUpdateDto$Outbound; } //# sourceMappingURL=dynamicconfigpartialupdatedto.d.ts.map