import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; /** * List of target applications that this layer is intended for. */ export type LayerContractDtoTargetApps = string | Array; /** * The data type that this parameter returns. Allowed types include: string, boolean, number, object, and array. */ export declare const LayerContractDtoType: { readonly String: "string"; readonly Number: "number"; readonly Boolean: "boolean"; readonly Object: "object"; readonly Array: "array"; }; /** * The data type that this parameter returns. Allowed types include: string, boolean, number, object, and array. */ export type LayerContractDtoType = ClosedEnum; export type Five = string | number | boolean | { [k: string]: any; }; /** * The default value for this parameter, which must match the specified type. */ export type DefaultValue = string | number | boolean | { [k: string]: any; } | Array; export type ParametersT = { /** * The name of this parameter, used for identification within the layer. */ name: string; /** * The data type that this parameter returns. Allowed types include: string, boolean, number, object, and array. */ type: LayerContractDtoType; /** * The default value for this parameter, which must match the specified type. */ defaultValue: string | number | boolean | { [k: string]: any; } | Array; }; export type LayerContractDto = { /** * ID */ id: string; /** * Optional name for the configuration. */ name?: string | undefined; /** * The ID type used for this layer, important for validation. */ idType: string; /** * A detailed description of the layer, explaining its purpose and functionality. */ 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; /** * Optional tags for categorization. */ tags?: Array | undefined; /** * List of target applications that this layer is intended for. */ targetApps?: string | Array | undefined; /** * Holdouts applied to this configuration. */ holdoutIDs?: Array | undefined; /** * Optional identifier for the responsible team. */ team?: any | null | undefined; /** * Indicates if the layer was automatically created by Statsig during experiment creation. */ isImplicitLayer: boolean; /** * An array of parameters associated with the layer, each defining specific attributes. */ parameters: Array; }; /** @internal */ export declare const LayerContractDtoTargetApps$inboundSchema: z.ZodType; /** @internal */ export type LayerContractDtoTargetApps$Outbound = string | Array; /** @internal */ export declare const LayerContractDtoTargetApps$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 LayerContractDtoTargetApps$ { /** @deprecated use `LayerContractDtoTargetApps$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `LayerContractDtoTargetApps$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `LayerContractDtoTargetApps$Outbound` instead. */ type Outbound = LayerContractDtoTargetApps$Outbound; } /** @internal */ export declare const LayerContractDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const LayerContractDtoType$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 LayerContractDtoType$ { /** @deprecated use `LayerContractDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly String: "string"; readonly Number: "number"; readonly Boolean: "boolean"; readonly Object: "object"; readonly Array: "array"; }>; /** @deprecated use `LayerContractDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly String: "string"; readonly Number: "number"; readonly Boolean: "boolean"; readonly Object: "object"; readonly Array: "array"; }>; } /** @internal */ export declare const Five$inboundSchema: z.ZodType; /** @internal */ export type Five$Outbound = string | number | boolean | { [k: string]: any; }; /** @internal */ export declare const Five$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 Five$ { /** @deprecated use `Five$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Five$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Five$Outbound` instead. */ type Outbound = Five$Outbound; } /** @internal */ export declare const DefaultValue$inboundSchema: z.ZodType; /** @internal */ export type DefaultValue$Outbound = string | number | boolean | { [k: string]: any; } | Array; /** @internal */ export declare const DefaultValue$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 DefaultValue$ { /** @deprecated use `DefaultValue$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DefaultValue$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DefaultValue$Outbound` instead. */ type Outbound = DefaultValue$Outbound; } /** @internal */ export declare const ParametersT$inboundSchema: z.ZodType; /** @internal */ export type ParametersT$Outbound = { name: string; type: string; defaultValue: string | number | boolean | { [k: string]: any; } | Array; }; /** @internal */ export declare const ParametersT$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 ParametersT$ { /** @deprecated use `ParametersT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ParametersT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ParametersT$Outbound` instead. */ type Outbound = ParametersT$Outbound; } /** @internal */ export declare const LayerContractDto$inboundSchema: z.ZodType; /** @internal */ export type LayerContractDto$Outbound = { 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; tags?: Array | undefined; targetApps?: string | Array | undefined; holdoutIDs?: Array | undefined; team?: any | null | undefined; isImplicitLayer: boolean; parameters: Array; }; /** @internal */ export declare const LayerContractDto$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 LayerContractDto$ { /** @deprecated use `LayerContractDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `LayerContractDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `LayerContractDto$Outbound` instead. */ type Outbound = LayerContractDto$Outbound; } //# sourceMappingURL=layercontractdto.d.ts.map