import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type SegmentRulesDtoTargetValue = Array | Array | string | number; export declare const SegmentRulesDtoType: { 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 FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesSegment: "passes_segment"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; }; export type SegmentRulesDtoType = ClosedEnum; export type SegmentRulesDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: SegmentRulesDtoType; }; export type SegmentRulesDto = { /** * The name of this rule. */ name: string; /** * Of the users that meet the conditions of this rule, what percent should return true. */ passPercentage: number; conditions: Array; /** * 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 SegmentRulesDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type SegmentRulesDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const SegmentRulesDtoTargetValue$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 SegmentRulesDtoTargetValue$ { /** @deprecated use `SegmentRulesDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDtoTargetValue$Outbound` instead. */ type Outbound = SegmentRulesDtoTargetValue$Outbound; } /** @internal */ export declare const SegmentRulesDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SegmentRulesDtoType$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 SegmentRulesDtoType$ { /** @deprecated use `SegmentRulesDtoType$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 FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesSegment: "passes_segment"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; }>; /** @deprecated use `SegmentRulesDtoType$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 FailsSegment: "fails_segment"; readonly IpAddress: "ip_address"; readonly OsName: "os_name"; readonly OsVersion: "os_version"; readonly PassesSegment: "passes_segment"; readonly UnitId: "unit_id"; readonly UserId: "user_id"; }>; } /** @internal */ export declare const SegmentRulesDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type SegmentRulesDtoConditions$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 SegmentRulesDtoConditions$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 SegmentRulesDtoConditions$ { /** @deprecated use `SegmentRulesDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDtoConditions$Outbound` instead. */ type Outbound = SegmentRulesDtoConditions$Outbound; } /** @internal */ export declare const SegmentRulesDto$inboundSchema: z.ZodType; /** @internal */ export type SegmentRulesDto$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const SegmentRulesDto$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 SegmentRulesDto$ { /** @deprecated use `SegmentRulesDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentRulesDto$Outbound` instead. */ type Outbound = SegmentRulesDto$Outbound; } //# sourceMappingURL=segmentrulesdto.d.ts.map