import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export declare const SegmentDtoType: { readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }; export type SegmentDtoType = ClosedEnum; export type SegmentDtoTargetValue = Array | Array | string | number; export declare const SegmentDtoRulesType: { 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 SegmentDtoRulesType = ClosedEnum; export type SegmentDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: SegmentDtoRulesType; }; export type SegmentDtoRules = { /** * 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; /** * 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; }; export type SegmentDto = { /** * Is the segment enabled. */ isEnabled: boolean; type: SegmentDtoType; /** * For id_list segments: the length of the ID list */ count?: number | undefined; /** * Rule Object */ rules?: Array | undefined; /** * Optional tags for categorization. */ tags?: Array | undefined; /** * ID */ id: string; /** * Optional name for the configuration. */ name?: string | undefined; /** * Type of ID */ idType: string; /** * Detailed description of the configuration’s purpose. */ description: string; /** * ID of the last modifier. */ lastModifierID?: any | null | undefined; /** * Time of the last modification. */ lastModifiedTime?: any | null | undefined; /** * Email of the last modifier. */ lastModifierEmail?: any | null | undefined; /** * Name of the last modifier. */ lastModifierName?: any | null | undefined; /** * ID of the user who created the entity. */ creatorID?: any | null | undefined; /** * Timestamp when the entity was created. */ createdTime: number; /** * Name of the creator. */ creatorName?: any | null | undefined; /** * Email of the creator. */ creatorEmail?: any | null | undefined; /** * List of target applications associated with this configuration. */ targetApps?: Array | undefined; /** * Holdouts applied to this configuration. */ holdoutIDs?: Array | undefined; /** * Optional identifier for the responsible team. */ team?: any | null | undefined; }; /** @internal */ export declare const SegmentDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SegmentDtoType$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 SegmentDtoType$ { /** @deprecated use `SegmentDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }>; /** @deprecated use `SegmentDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }>; } /** @internal */ export declare const SegmentDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type SegmentDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const SegmentDtoTargetValue$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 SegmentDtoTargetValue$ { /** @deprecated use `SegmentDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentDtoTargetValue$Outbound` instead. */ type Outbound = SegmentDtoTargetValue$Outbound; } /** @internal */ export declare const SegmentDtoRulesType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SegmentDtoRulesType$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 SegmentDtoRulesType$ { /** @deprecated use `SegmentDtoRulesType$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 `SegmentDtoRulesType$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 SegmentDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type SegmentDtoConditions$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 SegmentDtoConditions$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 SegmentDtoConditions$ { /** @deprecated use `SegmentDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentDtoConditions$Outbound` instead. */ type Outbound = SegmentDtoConditions$Outbound; } /** @internal */ export declare const SegmentDtoRules$inboundSchema: z.ZodType; /** @internal */ export type SegmentDtoRules$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const SegmentDtoRules$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 SegmentDtoRules$ { /** @deprecated use `SegmentDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentDtoRules$Outbound` instead. */ type Outbound = SegmentDtoRules$Outbound; } /** @internal */ export declare const SegmentDto$inboundSchema: z.ZodType; /** @internal */ export type SegmentDto$Outbound = { isEnabled: boolean; type: string; count?: number | undefined; rules?: Array | undefined; tags?: Array | undefined; id: string; name?: string | undefined; idType: string; description: string; lastModifierID?: any | null | undefined; lastModifiedTime?: any | null | undefined; lastModifierEmail?: any | null | undefined; lastModifierName?: any | null | undefined; creatorID?: any | null | undefined; createdTime: number; creatorName?: any | null | undefined; creatorEmail?: any | null | undefined; targetApps?: Array | undefined; holdoutIDs?: Array | undefined; team?: any | null | undefined; }; /** @internal */ export declare const SegmentDto$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 SegmentDto$ { /** @deprecated use `SegmentDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentDto$Outbound` instead. */ type Outbound = SegmentDto$Outbound; } //# sourceMappingURL=segmentdto.d.ts.map