import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type GateCreateDtoTargetValue = Array | Array | string | number; export declare const GateCreateDtoType: { 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 GateCreateDtoType = ClosedEnum; export type GateCreateDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: GateCreateDtoType; }; export type GateCreateDtoRules = { /** * 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 declare const Type: { readonly Permanent: "PERMANENT"; readonly Temporary: "TEMPORARY"; }; export type Type = ClosedEnum; export type GateCreateDtoTargetApps = string | Array; export type MonitoringMetrics = { name: string; type: string; }; /** * Create a new gate */ export type GateCreateDto = { isEnabled?: boolean | undefined; description?: string | undefined; rules?: Array | undefined; tags?: Array | undefined; type?: Type | undefined; idType?: string | undefined; targetApps?: string | Array | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; team?: any | null | undefined; measureMetricLifts?: boolean | undefined; monitoringMetrics?: Array | undefined; name?: string | undefined; id?: string | undefined; }; /** @internal */ export declare const GateCreateDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type GateCreateDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const GateCreateDtoTargetValue$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 GateCreateDtoTargetValue$ { /** @deprecated use `GateCreateDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoTargetValue$Outbound` instead. */ type Outbound = GateCreateDtoTargetValue$Outbound; } /** @internal */ export declare const GateCreateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GateCreateDtoType$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 GateCreateDtoType$ { /** @deprecated use `GateCreateDtoType$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 `GateCreateDtoType$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 GateCreateDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type GateCreateDtoConditions$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 GateCreateDtoConditions$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 GateCreateDtoConditions$ { /** @deprecated use `GateCreateDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoConditions$Outbound` instead. */ type Outbound = GateCreateDtoConditions$Outbound; } /** @internal */ export declare const GateCreateDtoRules$inboundSchema: z.ZodType; /** @internal */ export type GateCreateDtoRules$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const GateCreateDtoRules$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 GateCreateDtoRules$ { /** @deprecated use `GateCreateDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoRules$Outbound` instead. */ type Outbound = GateCreateDtoRules$Outbound; } /** @internal */ export declare const Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Type$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 Type$ { /** @deprecated use `Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Permanent: "PERMANENT"; readonly Temporary: "TEMPORARY"; }>; /** @deprecated use `Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Permanent: "PERMANENT"; readonly Temporary: "TEMPORARY"; }>; } /** @internal */ export declare const GateCreateDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type GateCreateDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const GateCreateDtoTargetApps$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 GateCreateDtoTargetApps$ { /** @deprecated use `GateCreateDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GateCreateDtoTargetApps$Outbound` instead. */ type Outbound = GateCreateDtoTargetApps$Outbound; } /** @internal */ export declare const MonitoringMetrics$inboundSchema: z.ZodType; /** @internal */ export type MonitoringMetrics$Outbound = { name: string; type: string; }; /** @internal */ export declare const MonitoringMetrics$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 MonitoringMetrics$ { /** @deprecated use `MonitoringMetrics$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `MonitoringMetrics$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `MonitoringMetrics$Outbound` instead. */ type Outbound = MonitoringMetrics$Outbound; } /** @internal */ export declare const GateCreateDto$inboundSchema: z.ZodType; /** @internal */ export type GateCreateDto$Outbound = { isEnabled?: boolean | undefined; description?: string | undefined; rules?: Array | undefined; tags?: Array | undefined; type?: string | undefined; idType?: string | undefined; targetApps?: string | Array | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; team?: any | null | undefined; measureMetricLifts?: boolean | undefined; monitoringMetrics?: Array | undefined; name?: string | undefined; id?: string | undefined; }; /** @internal */ export declare const GateCreateDto$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 GateCreateDto$ { /** @deprecated use `GateCreateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GateCreateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GateCreateDto$Outbound` instead. */ type Outbound = GateCreateDto$Outbound; } //# sourceMappingURL=gatecreatedto.d.ts.map