import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; /** * type of the segment */ export declare const SegmentCreateContractDtoType: { readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }; /** * type of the segment */ export type SegmentCreateContractDtoType = ClosedEnum; export type SegmentCreateContractDtoTargetValue = Array | Array | string | number; export declare const SegmentCreateContractDtoRulesType: { 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 SegmentCreateContractDtoRulesType = ClosedEnum; export type SegmentCreateContractDtoConditions = { targetValue?: Array | Array | string | number | null | undefined; operator?: string | undefined; field?: any | null | undefined; customID?: any | null | undefined; type: SegmentCreateContractDtoRulesType; }; export type SegmentCreateContractDtoRules = { /** * 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; }; export type SegmentCreateContractDto = { /** * name of the segment */ name: string; /** * optional id of the segment (defaults to name) */ id?: string | undefined; /** * description of the segment */ description?: string | undefined; /** * type of the segment */ type: SegmentCreateContractDtoType; /** * type of id */ idType?: string | undefined; /** * optional tags for categorization */ tags?: Array | undefined; /** * the Statsig ID of the creator of this experiment */ creatorID?: any | null | undefined; /** * the email of the creator of this experiment */ creatorEmail?: any | null | undefined; /** * optional identifier for the responsible team (enterprise only) */ team?: any | null | undefined; /** * Rule Object */ rules?: Array | undefined; }; /** @internal */ export declare const SegmentCreateContractDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SegmentCreateContractDtoType$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 SegmentCreateContractDtoType$ { /** @deprecated use `SegmentCreateContractDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }>; /** @deprecated use `SegmentCreateContractDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly IdList: "id_list"; readonly RuleBased: "rule_based"; readonly AnalysisList: "analysis_list"; }>; } /** @internal */ export declare const SegmentCreateContractDtoTargetValue$inboundSchema: z.ZodType; /** @internal */ export type SegmentCreateContractDtoTargetValue$Outbound = Array | Array | string | number; /** @internal */ export declare const SegmentCreateContractDtoTargetValue$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 SegmentCreateContractDtoTargetValue$ { /** @deprecated use `SegmentCreateContractDtoTargetValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoTargetValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoTargetValue$Outbound` instead. */ type Outbound = SegmentCreateContractDtoTargetValue$Outbound; } /** @internal */ export declare const SegmentCreateContractDtoRulesType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SegmentCreateContractDtoRulesType$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 SegmentCreateContractDtoRulesType$ { /** @deprecated use `SegmentCreateContractDtoRulesType$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 `SegmentCreateContractDtoRulesType$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 SegmentCreateContractDtoConditions$inboundSchema: z.ZodType; /** @internal */ export type SegmentCreateContractDtoConditions$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 SegmentCreateContractDtoConditions$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 SegmentCreateContractDtoConditions$ { /** @deprecated use `SegmentCreateContractDtoConditions$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoConditions$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoConditions$Outbound` instead. */ type Outbound = SegmentCreateContractDtoConditions$Outbound; } /** @internal */ export declare const SegmentCreateContractDtoRules$inboundSchema: z.ZodType; /** @internal */ export type SegmentCreateContractDtoRules$Outbound = { name: string; passPercentage: number; conditions: Array; environments?: Array | null | undefined; id?: string | undefined; baseID?: string | undefined; }; /** @internal */ export declare const SegmentCreateContractDtoRules$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 SegmentCreateContractDtoRules$ { /** @deprecated use `SegmentCreateContractDtoRules$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoRules$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDtoRules$Outbound` instead. */ type Outbound = SegmentCreateContractDtoRules$Outbound; } /** @internal */ export declare const SegmentCreateContractDto$inboundSchema: z.ZodType; /** @internal */ export type SegmentCreateContractDto$Outbound = { name: string; id?: string | undefined; description?: string | undefined; type: string; idType: string; tags?: Array | undefined; creatorID?: any | null | undefined; creatorEmail?: any | null | undefined; team?: any | null | undefined; rules?: Array | undefined; }; /** @internal */ export declare const SegmentCreateContractDto$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 SegmentCreateContractDto$ { /** @deprecated use `SegmentCreateContractDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SegmentCreateContractDto$Outbound` instead. */ type Outbound = SegmentCreateContractDto$Outbound; } //# sourceMappingURL=segmentcreatecontractdto.d.ts.map