import { ClosedEnum } from "../../types/enums.js"; import * as z from "zod"; export declare const IngestionSourceCreateContractDto3Dataset: { readonly Exposures: "Exposures"; readonly ExportExposures: "export_exposures"; }; export type IngestionSourceCreateContractDto3Dataset = ClosedEnum; export type IngestionSourceCreateContractDto3ColumnMapping = { /** * Unique identifier for the experiment. */ experiment: string; /** * Unique identifier for the experiment groups. */ groupId: string; /** * The unique user identifier this exposure is for. This might not necessarily be a single column for userID - it could be spread across multiple columns for deviceID etc. */ unitId?: string | undefined; /** * Unix timestamp in seconds of the event (ex. 1723146199) */ timestamp: string; ids: { [k: string]: string; }; metadata?: { [k: string]: string; } | undefined; metadataObject?: string | undefined; eventValue?: string | undefined; }; export declare const IngestionSourceCreateContractDto3Type: { readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }; export type IngestionSourceCreateContractDto3Type = ClosedEnum; export type Three = { dataset: IngestionSourceCreateContractDto3Dataset; columnMapping?: IngestionSourceCreateContractDto3ColumnMapping | undefined; type: IngestionSourceCreateContractDto3Type; sourceName: string; query?: string | undefined; useDeltaSharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; export declare const IngestionSourceCreateContractDto2Dataset: { readonly Events: "Events"; }; export type IngestionSourceCreateContractDto2Dataset = ClosedEnum; export type IngestionSourceCreateContractDtoColumnMapping = { /** * The unique user identifier this event is for. This might not necessarily be a single column for userID - it could be spread across multiple columns for deviceID etc. */ unitId?: string | undefined; /** * Name of the event. String under 128 characters, using ‘_’ for spaces. */ eventName: string; /** * Unix timestamp in seconds of the event (ex. 1723146199) */ timestamp: string; ids: { [k: string]: string; }; metadata?: { [k: string]: string; } | undefined; metadataObject?: string | undefined; eventValue?: string | undefined; }; export declare const IngestionSourceCreateContractDto2Type: { readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }; export type IngestionSourceCreateContractDto2Type = ClosedEnum; export type IngestionSourceCreateContractDto2 = { dataset: IngestionSourceCreateContractDto2Dataset; columnMapping?: IngestionSourceCreateContractDtoColumnMapping | undefined; type: IngestionSourceCreateContractDto2Type; sourceName: string; query?: string | undefined; useDeltaSharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; export declare const IngestionSourceCreateContractDtoDataset: { readonly Metrics: "Metrics"; }; export type IngestionSourceCreateContractDtoDataset = ClosedEnum; export type ColumnMapping = { /** * The unique user identifier this metric is for. This might not necessarily be a user_id - it could be a custom_id of some kind. Make sure this is in the same format as your logged unit_ids. */ unitId: string; /** * The id_type the unit_id represents. Must be valid id_type. Default Statsig types are user_id/stable_id, but you may have generated custom id_types. Make sure this matches (case sensitive) a customID in your project, or you won’t get experiment results. */ idType: string; /** * Date of the daily metric, ISO formatted (ex. 2024-08-08). We’ll load custom metrics to whatever date you use here. */ dateid: string; /** * String format. Not null. Length < 128 characters. */ metricName: string; /** * Numeric value for the metric. This OR both of numerator and denominator need to be provided. */ metricValue?: string | undefined; /** * Required for ratio metrics. If present along with a denominator in any record, the metric will be treated as ratio and only calculated for users with non-null denominators */ numerator?: string | undefined; /** * Required for ratio metrics. If present along with a numerator in any record, the metric will be treated as ratio and only calculated for users with non-null numerators. */ denominator?: string | undefined; }; export declare const IngestionSourceCreateContractDtoType: { readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }; export type IngestionSourceCreateContractDtoType = ClosedEnum; export type IngestionSourceCreateContractDto1 = { dataset: IngestionSourceCreateContractDtoDataset; columnMapping?: ColumnMapping | undefined; type: IngestionSourceCreateContractDtoType; sourceName: string; query?: string | undefined; useDeltaSharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; export type IngestionSourceCreateContractDto = IngestionSourceCreateContractDto1 | IngestionSourceCreateContractDto2 | Three; /** @internal */ export declare const IngestionSourceCreateContractDto3Dataset$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDto3Dataset$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 IngestionSourceCreateContractDto3Dataset$ { /** @deprecated use `IngestionSourceCreateContractDto3Dataset$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Exposures: "Exposures"; readonly ExportExposures: "export_exposures"; }>; /** @deprecated use `IngestionSourceCreateContractDto3Dataset$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Exposures: "Exposures"; readonly ExportExposures: "export_exposures"; }>; } /** @internal */ export declare const IngestionSourceCreateContractDto3ColumnMapping$inboundSchema: z.ZodType; /** @internal */ export type IngestionSourceCreateContractDto3ColumnMapping$Outbound = { experiment: string; group_id: string; unit_id?: string | undefined; timestamp: string; ids: { [k: string]: string; }; metadata?: { [k: string]: string; } | undefined; metadata_object: string; event_value: string; }; /** @internal */ export declare const IngestionSourceCreateContractDto3ColumnMapping$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 IngestionSourceCreateContractDto3ColumnMapping$ { /** @deprecated use `IngestionSourceCreateContractDto3ColumnMapping$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto3ColumnMapping$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto3ColumnMapping$Outbound` instead. */ type Outbound = IngestionSourceCreateContractDto3ColumnMapping$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDto3Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDto3Type$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 IngestionSourceCreateContractDto3Type$ { /** @deprecated use `IngestionSourceCreateContractDto3Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; /** @deprecated use `IngestionSourceCreateContractDto3Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; } /** @internal */ export declare const Three$inboundSchema: z.ZodType; /** @internal */ export type Three$Outbound = { dataset: string; column_mapping?: IngestionSourceCreateContractDto3ColumnMapping$Outbound | undefined; type: string; source_name: string; query?: string | undefined; use_delta_sharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; /** @internal */ export declare const Three$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 Three$ { /** @deprecated use `Three$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Three$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Three$Outbound` instead. */ type Outbound = Three$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDto2Dataset$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDto2Dataset$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 IngestionSourceCreateContractDto2Dataset$ { /** @deprecated use `IngestionSourceCreateContractDto2Dataset$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Events: "Events"; }>; /** @deprecated use `IngestionSourceCreateContractDto2Dataset$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Events: "Events"; }>; } /** @internal */ export declare const IngestionSourceCreateContractDtoColumnMapping$inboundSchema: z.ZodType; /** @internal */ export type IngestionSourceCreateContractDtoColumnMapping$Outbound = { unit_id?: string | undefined; event_name: string; timestamp: string; ids: { [k: string]: string; }; metadata?: { [k: string]: string; } | undefined; metadata_object: string; event_value: string; }; /** @internal */ export declare const IngestionSourceCreateContractDtoColumnMapping$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 IngestionSourceCreateContractDtoColumnMapping$ { /** @deprecated use `IngestionSourceCreateContractDtoColumnMapping$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDtoColumnMapping$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDtoColumnMapping$Outbound` instead. */ type Outbound = IngestionSourceCreateContractDtoColumnMapping$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDto2Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDto2Type$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 IngestionSourceCreateContractDto2Type$ { /** @deprecated use `IngestionSourceCreateContractDto2Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; /** @deprecated use `IngestionSourceCreateContractDto2Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; } /** @internal */ export declare const IngestionSourceCreateContractDto2$inboundSchema: z.ZodType; /** @internal */ export type IngestionSourceCreateContractDto2$Outbound = { dataset: string; column_mapping?: IngestionSourceCreateContractDtoColumnMapping$Outbound | undefined; type: string; source_name: string; query?: string | undefined; use_delta_sharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; /** @internal */ export declare const IngestionSourceCreateContractDto2$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 IngestionSourceCreateContractDto2$ { /** @deprecated use `IngestionSourceCreateContractDto2$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto2$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto2$Outbound` instead. */ type Outbound = IngestionSourceCreateContractDto2$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDtoDataset$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDtoDataset$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 IngestionSourceCreateContractDtoDataset$ { /** @deprecated use `IngestionSourceCreateContractDtoDataset$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Metrics: "Metrics"; }>; /** @deprecated use `IngestionSourceCreateContractDtoDataset$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Metrics: "Metrics"; }>; } /** @internal */ export declare const ColumnMapping$inboundSchema: z.ZodType; /** @internal */ export type ColumnMapping$Outbound = { unit_id: string; id_type: string; dateid: string; metric_name: string; metric_value: string; numerator: string; denominator: string; }; /** @internal */ export declare const ColumnMapping$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 ColumnMapping$ { /** @deprecated use `ColumnMapping$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ColumnMapping$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ColumnMapping$Outbound` instead. */ type Outbound = ColumnMapping$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDtoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const IngestionSourceCreateContractDtoType$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 IngestionSourceCreateContractDtoType$ { /** @deprecated use `IngestionSourceCreateContractDtoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; /** @deprecated use `IngestionSourceCreateContractDtoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Redshift: "redshift"; readonly BigqueryV2: "bigquery-v2"; readonly SnowflakeV2: "snowflake-v2"; readonly Databricks: "databricks"; readonly AzureSynapse: "azure-synapse"; readonly S3: "s3"; readonly Athena: "athena"; readonly Adls: "adls"; }>; } /** @internal */ export declare const IngestionSourceCreateContractDto1$inboundSchema: z.ZodType; /** @internal */ export type IngestionSourceCreateContractDto1$Outbound = { dataset: string; column_mapping?: ColumnMapping$Outbound | undefined; type: string; source_name: string; query?: string | undefined; use_delta_sharing?: boolean | undefined; share?: string | undefined; schema?: string | undefined; table?: string | undefined; enabled?: boolean | undefined; }; /** @internal */ export declare const IngestionSourceCreateContractDto1$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 IngestionSourceCreateContractDto1$ { /** @deprecated use `IngestionSourceCreateContractDto1$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto1$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto1$Outbound` instead. */ type Outbound = IngestionSourceCreateContractDto1$Outbound; } /** @internal */ export declare const IngestionSourceCreateContractDto$inboundSchema: z.ZodType; /** @internal */ export type IngestionSourceCreateContractDto$Outbound = IngestionSourceCreateContractDto1$Outbound | IngestionSourceCreateContractDto2$Outbound | Three$Outbound; /** @internal */ export declare const IngestionSourceCreateContractDto$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 IngestionSourceCreateContractDto$ { /** @deprecated use `IngestionSourceCreateContractDto$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IngestionSourceCreateContractDto$Outbound` instead. */ type Outbound = IngestionSourceCreateContractDto$Outbound; } //# sourceMappingURL=ingestionsourcecreatecontractdto.d.ts.map