import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type TargetValue = Array | Array | string | number; export declare const RuleUpdateDtoType: { 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 RuleUpdateDtoType = ClosedEnum; export type Conditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: RuleUpdateDtoType; }; export type RuleUpdateDto = { /** * The name of this rule. */ name?: string | undefined; /** * Of the users that meet the conditions of this rule, what percent should return true. */ passPercentage?: number | undefined; /** * An array of Condition objects. */ conditions?: Array | undefined; /** * The environments this rule is enabled for. */ 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; }; /** @internal */ export declare const TargetValue$inboundSchema: z.ZodType; /** @internal */ export type TargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const TargetValue$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 TargetValue$ { /** @deprecated use `TargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TargetValue$Outbound` instead. */ type Outbound = TargetValue$Outbound; } /** @internal */ export declare const RuleUpdateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RuleUpdateDtoType$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 RuleUpdateDtoType$ { /** @deprecated use `RuleUpdateDtoType$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 `RuleUpdateDtoType$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 Conditions$inboundSchema: z.ZodType; /** @internal */ export type Conditions$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 Conditions$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 Conditions$ { /** @deprecated use `Conditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Conditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Conditions$Outbound` instead. */ type Outbound = Conditions$Outbound; } /** @internal */ export declare const RuleUpdateDto$inboundSchema: z.ZodType; /** @internal */ export type RuleUpdateDto$Outbound = { name?: string | undefined; passPercentage?: number | undefined; conditions?: Array | undefined; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const RuleUpdateDto$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 RuleUpdateDto$ { /** @deprecated use `RuleUpdateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `RuleUpdateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `RuleUpdateDto$Outbound` instead. */ type Outbound = RuleUpdateDto$Outbound; } //# sourceMappingURL=ruleupdatedto.d.ts.map