import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export type ExternalGateDtoTargetApps = string | Array; export declare const Status: { readonly InProgress: "In Progress"; readonly Launched: "Launched"; readonly Disabled: "Disabled"; readonly Archived: "Archived"; }; export type Status = ClosedEnum; export declare const ExternalGateDtoType: { readonly Temporary: "TEMPORARY"; readonly Permanent: "PERMANENT"; readonly Stale: "STALE"; readonly Template: "TEMPLATE"; }; export type ExternalGateDtoType = ClosedEnum; export declare const TypeReason: { readonly None: "NONE"; readonly StaleProbablyLaunched: "STALE_PROBABLY_LAUNCHED"; readonly StaleProbablyUnlaunched: "STALE_PROBABLY_UNLAUNCHED"; readonly StaleProbablyForgotten: "STALE_PROBABLY_FORGOTTEN"; readonly StaleNoRules: "STALE_NO_RULES"; readonly StaleProbablyDeadCheck: "STALE_PROBABLY_DEAD_CHECK"; }; export type TypeReason = ClosedEnum; /** * Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined. */ export type Owner = { /** * ID of the owner */ ownerID?: string | undefined; /** * Type of the owner (e.g., SDK_KEY or USER) */ ownerType?: string | undefined; /** * The name of the owner. This field is optional. */ ownerName?: string | undefined; }; export type ExternalGateDtoTargetValue = Array | Array | string | number; export declare const ExternalGateDtoRulesType: { 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 ExternalGateDtoRulesType = ClosedEnum; export type ExternalGateDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: ExternalGateDtoRulesType; }; export type ExternalGateDtoRules = { /** * 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 ExternalGateDtoMonitoringMetrics = { name: string; type: string; }; export type AllowedReviewers = { id: string; name: string; email: string; }; export type ReviewSettings = { requiredReview: boolean; allowedReviewers: Array | null; }; export type ActiveReview = { reviewID: string; reviewStatus: string; description: string; }; export type ExternalGateDto = { /** * ID */ id: string; /** * Optional name for the configuration. */ name?: string | undefined; idType?: string | undefined; 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; creatorID?: any | null | undefined; /** * Timestamp when the entity was created. */ createdTime: number; /** * Name of the creator. */ creatorName?: any | null | undefined; creatorEmail?: any | null | undefined; tags?: Array | undefined; targetApps?: string | Array | undefined; /** * Holdouts applied to this configuration. */ holdoutIDs?: Array | undefined; team?: any | null | undefined; checksPerHour?: any | null | undefined; status: Status; type: ExternalGateDtoType; typeReason: TypeReason; /** * Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined. */ owner?: Owner | null | undefined; isEnabled: boolean; rules: Array; measureMetricLifts?: boolean | undefined; monitoringMetrics?: Array | undefined; reviewSettings?: ReviewSettings | undefined; activeReview?: ActiveReview | undefined; }; /** @internal */ export declare const ExternalGateDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const ExternalGateDtoTargetApps$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 ExternalGateDtoTargetApps$ { /** @deprecated use `ExternalGateDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoTargetApps$Outbound` instead. */ type Outbound = ExternalGateDtoTargetApps$Outbound; } /** @internal */ export declare const Status$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Status$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 Status$ { /** @deprecated use `Status$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly InProgress: "In Progress"; readonly Launched: "Launched"; readonly Disabled: "Disabled"; readonly Archived: "Archived"; }>; /** @deprecated use `Status$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly InProgress: "In Progress"; readonly Launched: "Launched"; readonly Disabled: "Disabled"; readonly Archived: "Archived"; }>; } /** @internal */ export declare const ExternalGateDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ExternalGateDtoType$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 ExternalGateDtoType$ { /** @deprecated use `ExternalGateDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Temporary: "TEMPORARY"; readonly Permanent: "PERMANENT"; readonly Stale: "STALE"; readonly Template: "TEMPLATE"; }>; /** @deprecated use `ExternalGateDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Temporary: "TEMPORARY"; readonly Permanent: "PERMANENT"; readonly Stale: "STALE"; readonly Template: "TEMPLATE"; }>; } /** @internal */ export declare const TypeReason$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const TypeReason$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 TypeReason$ { /** @deprecated use `TypeReason$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly None: "NONE"; readonly StaleProbablyLaunched: "STALE_PROBABLY_LAUNCHED"; readonly StaleProbablyUnlaunched: "STALE_PROBABLY_UNLAUNCHED"; readonly StaleProbablyForgotten: "STALE_PROBABLY_FORGOTTEN"; readonly StaleNoRules: "STALE_NO_RULES"; readonly StaleProbablyDeadCheck: "STALE_PROBABLY_DEAD_CHECK"; }>; /** @deprecated use `TypeReason$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly None: "NONE"; readonly StaleProbablyLaunched: "STALE_PROBABLY_LAUNCHED"; readonly StaleProbablyUnlaunched: "STALE_PROBABLY_UNLAUNCHED"; readonly StaleProbablyForgotten: "STALE_PROBABLY_FORGOTTEN"; readonly StaleNoRules: "STALE_NO_RULES"; readonly StaleProbablyDeadCheck: "STALE_PROBABLY_DEAD_CHECK"; }>; } /** @internal */ export declare const Owner$inboundSchema: z.ZodType; /** @internal */ export type Owner$Outbound = { ownerID?: string | undefined; ownerType?: string | undefined; ownerName?: string | undefined; }; /** @internal */ export declare const Owner$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 Owner$ { /** @deprecated use `Owner$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Owner$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Owner$Outbound` instead. */ type Outbound = Owner$Outbound; } /** @internal */ export declare const ExternalGateDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const ExternalGateDtoTargetValue$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 ExternalGateDtoTargetValue$ { /** @deprecated use `ExternalGateDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoTargetValue$Outbound` instead. */ type Outbound = ExternalGateDtoTargetValue$Outbound; } /** @internal */ export declare const ExternalGateDtoRulesType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ExternalGateDtoRulesType$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 ExternalGateDtoRulesType$ { /** @deprecated use `ExternalGateDtoRulesType$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 `ExternalGateDtoRulesType$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 ExternalGateDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDtoConditions$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 ExternalGateDtoConditions$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 ExternalGateDtoConditions$ { /** @deprecated use `ExternalGateDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoConditions$Outbound` instead. */ type Outbound = ExternalGateDtoConditions$Outbound; } /** @internal */ export declare const ExternalGateDtoRules$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDtoRules$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const ExternalGateDtoRules$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 ExternalGateDtoRules$ { /** @deprecated use `ExternalGateDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoRules$Outbound` instead. */ type Outbound = ExternalGateDtoRules$Outbound; } /** @internal */ export declare const ExternalGateDtoMonitoringMetrics$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDtoMonitoringMetrics$Outbound = { name: string; type: string; }; /** @internal */ export declare const ExternalGateDtoMonitoringMetrics$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 ExternalGateDtoMonitoringMetrics$ { /** @deprecated use `ExternalGateDtoMonitoringMetrics$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoMonitoringMetrics$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDtoMonitoringMetrics$Outbound` instead. */ type Outbound = ExternalGateDtoMonitoringMetrics$Outbound; } /** @internal */ export declare const AllowedReviewers$inboundSchema: z.ZodType; /** @internal */ export type AllowedReviewers$Outbound = { id: string; name: string; email: string; }; /** @internal */ export declare const AllowedReviewers$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 AllowedReviewers$ { /** @deprecated use `AllowedReviewers$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AllowedReviewers$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AllowedReviewers$Outbound` instead. */ type Outbound = AllowedReviewers$Outbound; } /** @internal */ export declare const ReviewSettings$inboundSchema: z.ZodType; /** @internal */ export type ReviewSettings$Outbound = { requiredReview: boolean; allowedReviewers: Array | null; }; /** @internal */ export declare const ReviewSettings$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 ReviewSettings$ { /** @deprecated use `ReviewSettings$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ReviewSettings$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ReviewSettings$Outbound` instead. */ type Outbound = ReviewSettings$Outbound; } /** @internal */ export declare const ActiveReview$inboundSchema: z.ZodType; /** @internal */ export type ActiveReview$Outbound = { reviewID: string; reviewStatus: string; description: string; }; /** @internal */ export declare const ActiveReview$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 ActiveReview$ { /** @deprecated use `ActiveReview$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ActiveReview$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ActiveReview$Outbound` instead. */ type Outbound = ActiveReview$Outbound; } /** @internal */ export declare const ExternalGateDto$inboundSchema: z.ZodType; /** @internal */ export type ExternalGateDto$Outbound = { id: string; name?: string | undefined; idType?: string | undefined; 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; tags?: Array | undefined; targetApps?: string | Array | undefined; holdoutIDs?: Array | undefined; team?: any | null | undefined; checksPerHour?: any | null | undefined; status: string; type: string; typeReason: string; owner?: Owner$Outbound | null | undefined; isEnabled: boolean; rules: Array; measureMetricLifts?: boolean | undefined; monitoringMetrics?: Array | undefined; reviewSettings?: ReviewSettings$Outbound | undefined; activeReview?: ActiveReview$Outbound | undefined; }; /** @internal */ export declare const ExternalGateDto$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 ExternalGateDto$ { /** @deprecated use `ExternalGateDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExternalGateDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExternalGateDto$Outbound` instead. */ type Outbound = ExternalGateDto$Outbound; } //# sourceMappingURL=externalgatedto.d.ts.map