:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(api): Declare request bodies of pause, unpause, and cancel (#107545)
Tomás Farías Santanaa717c4cdbd5e
diff --git a/products/batch_exports/backend/api/batch_export.py b/products/batch_exports/backend/api/batch_export.pyindex 5e4d644eca3c..70421c02a918 100644--- a/products/batch_exports/backend/api/batch_export.py+++ b/products/batch_exports/backend/api/batch_export.py@@ -827,6 +827,14 @@ HOGQL_QUERY_HELP_TEXT = ()+class BatchExportUnpauseRequestSerializer(serializers.Serializer):+ backfill = serializers.BooleanField(+ required=False,+ default=False,+ help_text="Whether to backfill the runs that the batch export missed while it was paused.",+ )++class BatchExportRequestSerializer(serializers.Serializer):"""Request body for create/partial_update on BatchExportViewSet.@@ -1974,6 +1982,7 @@ class BatchExportViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, viewsets.ModelVireturn queryset.exclude(destination__type="Workflows")return queryset+ @extend_schema(request=None)@action(methods=["POST"], detail=True, required_scopes=["batch_export:write"])def pause(self, request: request.Request, *args, **kwargs) -> response.Response:"""Pause a BatchExport."""@@ -1998,16 +2007,20 @@ class BatchExportViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, viewsets.ModelVireturn response.Response({"paused": True})+ @extend_schema(request=BatchExportUnpauseRequestSerializer)@action(methods=["POST"], detail=True, required_scopes=["batch_export:write"])def unpause(self, request: request.Request, *args, **kwargs) -> response.Response:"""Unpause a BatchExport."""if not isinstance(request.user, User) or request.user.current_team is None:raise NotAuthenticated()+ serializer = BatchExportUnpauseRequestSerializer(data=request.data)+ serializer.is_valid(raise_exception=True)+ backfill = serializer.validated_data["backfill"]+user_id = request.user.distinct_idteam_id = request.user.current_team.idnote = f"Unpause requested by user {user_id} from team {team_id}"- backfill = request.data.get("backfill", False)batch_export = self.get_object()temporal = sync_connect()diff --git a/products/batch_exports/backend/api/file_download.py b/products/batch_exports/backend/api/file_download.pyindex 735e0235ca0f..6bf820b1f29c 100644--- a/products/batch_exports/backend/api/file_download.py+++ b/products/batch_exports/backend/api/file_download.py@@ -676,6 +676,7 @@ class FileDownloadBatchExportOnDemandViewSet(return response+ @extend_schema(request=None)@action(methods=["POST"], detail=True, required_scopes=["batch_export:write"])def cancel(self, request, *args, **kwargs) -> response.Response:"""Cancel an ongoing file-download batch export."""diff --git a/products/batch_exports/frontend/generated/api.schemas.ts b/products/batch_exports/frontend/generated/api.schemas.tsindex ff0e4c7b28d2..31cb1e849f8a 100644--- a/products/batch_exports/frontend/generated/api.schemas.ts+++ b/products/batch_exports/frontend/generated/api.schemas.ts@@ -1670,6 +1670,11 @@ export interface PatchedBatchExportRequestApi {offset_hour?: number | null}+export interface BatchExportUnpauseRequestApi {+ /** Whether to backfill the runs that the batch export missed while it was paused. */+ backfill?: boolean+}+/*** Typed output for view set `list`.*/@@ -1872,38 +1877,6 @@ export type RetrieveFileDownloadResponseApi =| RetrieveCompletedOutputApi| RetrieveFailedOutputApi-/**- * * `events` - events- * * `persons` - persons- * * `sessions` - sessions- * * `hogql` - hogql- */-export type FileDownloadBatchExportOnDemandModelEnumApi =- (typeof FileDownloadBatchExportOnDemandModelEnumApi)[keyof typeof FileDownloadBatchExportOnDemandModelEnumApi]--export const FileDownloadBatchExportOnDemandModelEnumApi = {- Events: 'events',- Persons: 'persons',- Sessions: 'sessions',- Hogql: 'hogql',-} as const--/**- * Request shape for a FileDownload batch export on demand.- */-export interface FileDownloadBatchExportOnDemandApi {- file: FileDownloadDestinationFileConfigApi- model: FileDownloadBatchExportOnDemandModelEnumApi- include?: string[]- exclude?: string[]- /** HogQL SELECT query whose results are exported. This model is in closed beta and is enabled per team; when it is not enabled, the request fails with a permission error that names HogQL batch exports. Contact PostHog support to request access. The query may reference the {data_interval_start} and {data_interval_end} placeholders. Provide a value for each placeholder the query references; missing referenced bounds are rejected, not inferred. When both bounds are supplied, they must span at most seven days. Neither supplied bound may be in the future. Without placeholders, the query runs unchanged, even if bounds are supplied. Every column in the SELECT clause must be a field or have an alias. It is recommended to limit the query with a WHERE clause, for example bounding timestamp on the events table, both to avoid exporting more rows than expected and because user queries run under stricter resource limits than the other models. */- hogql_query?: string- /** Start of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_start}. A supplied start must not be in the future. When both bounds are supplied, the interval must span at most seven days. */- data_interval_start?: string- /** End of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_end}. A supplied end must not be in the future or precede a supplied start. Bounds replace HogQL placeholders; they do not add filters to the query. */- data_interval_end?: string-}-/*** * `hogql` - hogql*/diff --git a/products/batch_exports/frontend/generated/api.ts b/products/batch_exports/frontend/generated/api.tsindex 25afac642f0f..48e28bd53657 100644--- a/products/batch_exports/frontend/generated/api.ts+++ b/products/batch_exports/frontend/generated/api.ts@@ -13,6 +13,7 @@ import type {BatchExportBackfillApi,BatchExportRequestApi,BatchExportRunApi,+ BatchExportUnpauseRequestApi,BatchExportsBackfillsListParams,BatchExportsListParams,BatchExportsLogsRetrieveParams,@@ -20,7 +21,6 @@ import type {BatchExportsRunsLogsRetrieveParams,CreateFileDownloadRequestApi,CreateOutputApi,- FileDownloadBatchExportOnDemandApi,FileDownloadBatchExportsListParams,FileDownloadBatchExportsLogsRetrieveParams,FileDownloadCountRowsRequestApi,@@ -428,17 +428,10 @@ export const getBatchExportsPauseCreateUrl = (projectId: string, id: string) =>/*** Pause a BatchExport.*/-export const batchExportsPauseCreate = async (- projectId: string,- id: string,- batchExportApi: NonReadonly<BatchExportApi>,- options?: RequestInit-): Promise<void> => {+export const batchExportsPauseCreate = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {return apiMutator<void>(getBatchExportsPauseCreateUrl(projectId, id), {...options,method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(batchExportApi),})}@@ -470,14 +463,14 @@ export const getBatchExportsUnpauseCreateUrl = (projectId: string, id: string) =export const batchExportsUnpauseCreate = async (projectId: string,id: string,- batchExportApi: NonReadonly<BatchExportApi>,+ batchExportUnpauseRequestApi?: BatchExportUnpauseRequestApi,options?: RequestInit): Promise<void> => {return apiMutator<void>(getBatchExportsUnpauseCreateUrl(projectId, id), {...options,method: 'POST',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(batchExportApi),+ body: JSON.stringify(batchExportUnpauseRequestApi),})}@@ -588,14 +581,11 @@ export const getFileDownloadBatchExportsCancelCreateUrl = (projectId: string, idexport const fileDownloadBatchExportsCancelCreate = async (projectId: string,id: string,- fileDownloadBatchExportOnDemandApi: FileDownloadBatchExportOnDemandApi,options?: RequestInit): Promise<void> => {return apiMutator<void>(getFileDownloadBatchExportsCancelCreateUrl(projectId, id), {...options,method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(fileDownloadBatchExportOnDemandApi),})}diff --git a/products/batch_exports/frontend/generated/api.zod.ts b/products/batch_exports/frontend/generated/api.zod.tsindex e4695aebd92c..ee3058d2bf28 100644--- a/products/batch_exports/frontend/generated/api.zod.ts+++ b/products/batch_exports/frontend/generated/api.zod.ts@@ -1669,949 +1669,31 @@ export const BatchExportsPartialUpdateBody = /* @__PURE__ */ zod'Request body for create\/partial_update on BatchExportViewSet.\n\nMirrors the writeable fields of `BatchExportSerializer` but uses a polymorphic\n`destination` schema so integration_id is marked required on the types that need\nit. Responses continue to use `BatchExportSerializer`.')-/**- * Pause a BatchExport.- */-export const batchExportsPauseCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault = true-export const batchExportsPauseCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault = true-export const batchExportsPauseCreateBodyDestinationOneConfigOneTwoPrefixDefault = ``-export const batchExportsPauseCreateBodyDestinationOneConfigOneTwoFileFormatDefault = `JSONLines`-export const batchExportsPauseCreateBodyDestinationOneConfigOneThreeTableIdDefault = `events`-export const batchExportsPauseCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault = false-export const batchExportsPauseCreateBodyDestinationOneConfigOneFourSchemaDefault = `public`-export const batchExportsPauseCreateBodyDestinationOneConfigOneFourTableNameDefault = `events`-export const batchExportsPauseCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault = false-export const batchExportsPauseCreateBodyDestinationOneConfigOneFiveFileFormatDefault = `JSONLines`-export const batchExportsPauseCreateBodyDestinationOneConfigOneSixFileFormatDefault = `JSONLines`-export const batchExportsPauseCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault = false-export const batchExportsPauseCreateBodyDestinationOneConfigOneSevenTableNameDefault = `events`-export const batchExportsPauseCreateBodyDestinationOneConfigOneEightSchemaDefault = `public`-export const batchExportsPauseCreateBodyDestinationOneConfigOneEightTableNameDefault = `events`-export const batchExportsPauseCreateBodyDestinationOneConfigOneEightPortDefault = 5439-export const batchExportsPauseCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault = `varchar`-export const batchExportsPauseCreateBodyDestinationOneConfigOneEightModeDefault = `INSERT`-export const batchExportsPauseCreateBodyOffsetDayMin = 0-export const batchExportsPauseCreateBodyOffsetDayMax = 6--export const batchExportsPauseCreateBodyOffsetHourMin = 0-export const batchExportsPauseCreateBodyOffsetHourMax = 23--export const BatchExportsPauseCreateBody = /* @__PURE__ */ zod- .object({- name: zod.string().describe('A human-readable name for this BatchExport.'),- model: zod- .union([- zod- .enum(['events', 'persons', 'sessions', 'hogql'])- .describe(- '\* `events` - Events\n\* `persons` - Persons\n\* `sessions` - Sessions\n\* `hogql` - Hogql'- ),- zod.enum(['']),- zod.null(),- ])- .optional()- .describe(- 'Which model this BatchExport is exporting.\n\n\* `events` - Events\n\* `persons` - Persons\n\* `sessions` - Sessions\n\* `hogql` - Hogql'- ),- destination: zod- .object({- type: zod- .enum([- 'S3',- 'AwsS3',- 'S3Compatible',- 'Snowflake',- 'Postgres',- 'Redshift',- 'BigQuery',- 'Databricks',- 'AzureBlob',- 'Workflows',- 'HTTP',- 'NoOp',- 'FileDownload',- ])- .describe(- '\* `S3` - S3\n\* `AwsS3` - Aws S3\n\* `S3Compatible` - S3 Compatible\n\* `Snowflake` - Snowflake\n\* `Postgres` - Postgres\n\* `Redshift` - Redshift\n\* `BigQuery` - Bigquery\n\* `Databricks` - Databricks\n\* `AzureBlob` - Azure Blob\n\* `Workflows` - Workflows\n\* `HTTP` - Http\n\* `NoOp` - Noop\n\* `FileDownload` - File Download'- )- .describe(- 'A choice of supported BatchExportDestination types.\n\n\* `S3` - S3\n\* `AwsS3` - Aws S3\n\* `S3Compatible` - S3 Compatible\n\* `Snowflake` - Snowflake\n\* `Postgres` - Postgres\n\* `Redshift` - Redshift\n\* `BigQuery` - Bigquery\n\* `Databricks` - Databricks\n\* `AzureBlob` - Azure Blob\n\* `Workflows` - Workflows\n\* `HTTP` - Http\n\* `NoOp` - Noop\n\* `FileDownload` - File Download'- ),- config: zod- .union([- zod- .object({- http_path: zod.string().describe('Databricks SQL warehouse HTTP path.'),- catalog: zod.string().describe('Unity Catalog name.'),- schema: zod.string().describe('Schema (database) name inside the catalog.'),- table_name: zod.string().describe('Destination table name.'),- use_variant_type: zod- .boolean()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault)- .describe('Whether to use the Databricks VARIANT type for JSON-like columns.'),- use_automatic_schema_evolution: zod- .boolean()- .default(- batchExportsPauseCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault- )- .describe(- 'Whether to let Databricks evolve the destination table schema automatically.'- ),- type: zod.enum(['Databricks']),- })- .describe(- 'Typed configuration for a Databricks batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors\n`DatabricksBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- container_name: zod.string().describe('Azure Blob Storage container name.'),- prefix: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneTwoPrefixDefault)- .describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsPauseCreateBodyDestinationOneConfigOneTwoFileFormatDefault)- .describe(- 'File format used for exported objects.\n\n\* `JSONLines` - JSONLines\n\* `Parquet` - Parquet'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- type: zod.enum(['AzureBlob']),- })- .describe(- 'Typed configuration for an Azure Blob Storage batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors\n`AzureBlobBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- dataset_id: zod.string().describe('BigQuery dataset ID to write to.'),- table_id: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneThreeTableIdDefault)- .describe('BigQuery table ID inside the dataset.'),- use_json_type: zod- .boolean()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault)- .describe(- "Whether to export 'properties', 'set', and 'set_once' fields as the BigQuery JSON type rather than STRING. Cannot be changed after the export is created."- ),- type: zod.enum(['BigQuery']),- })- .describe(- 'Typed configuration for a BigQuery batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors the\nnon-credential fields of `BigQueryBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('PostgreSQL database name to connect to.'),- schema: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneFourSchemaDefault)- .describe('PostgreSQL schema name containing the destination table.'),- table_name: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneFourTableNameDefault)- .describe('PostgreSQL table name to write exported rows into.'),- has_self_signed_cert: zod- .boolean()- .default(- batchExportsPauseCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault- )- .describe(- 'Legacy SSL option for direct credential configuration. Ignored when using a PostgreSQL integration.'- ),- type: zod.enum(['Postgres']),- })- .describe(- 'Typed configuration for a PostgreSQL batch-export destination.\n\nConnection credentials may live in a linked Integration (when one is provided) or\ninline in this config (legacy). Mirrors the non-credential fields of\n`PostgresBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- bucket_name: zod.string().describe('Name of the destination bucket.'),- region: zod.string().describe("Region the bucket is in (e.g. 'us-east-1')."),- prefix: zod.string().describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsPauseCreateBodyDestinationOneConfigOneFiveFileFormatDefault)- .describe(- 'File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- encryption: zod- .string()- .nullish()- .describe(- "Optional S3 server-side encryption algorithm (e.g. 'AES256' or 'aws:kms')."- ),- kms_key_id: zod- .string()- .nullish()- .describe("KMS key ID to use when encryption is 'aws:kms'."),- type: zod.enum(['AwsS3']),- })- .describe(- 'Typed configuration for an AWS S3 batch-export destination.\n\nAWS credentials live in the linked aws-s3 Integration. Mirrors the non-credential fields of\n`AwsS3BatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- bucket_name: zod.string().describe('Name of the destination bucket.'),- region: zod.string().describe("Region the bucket is in (e.g. 'us-east-1')."),- prefix: zod.string().describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsPauseCreateBodyDestinationOneConfigOneSixFileFormatDefault)- .describe(- 'File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- use_virtual_style_addressing: zod- .boolean()- .default(- batchExportsPauseCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault- )- .describe('Use virtual-hosted-style addressing rather than path-style.'),- type: zod.enum(['S3Compatible']),- })- .describe(- 'Typed configuration for an S3-compatible batch-export destination (Cloudflare R2,\nDigitalOcean Spaces, etc.).\n\nCredentials and the provider `endpoint_url` live in the linked s3-compatible Integration.\nMirrors the non-credential fields of `S3CompatibleBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('Snowflake database to write to.'),- warehouse: zod.string().describe('Snowflake compute warehouse to use.'),- schema: zod- .string()- .describe('Schema inside the database containing the destination table.'),- table_name: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneSevenTableNameDefault)- .describe('Destination table name.'),- role: zod- .string()- .nullish()- .describe('Optional Snowflake role to assume for the session.'),- type: zod.enum(['Snowflake']),- })- .describe(- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('Redshift database name to connect to.'),- host: zod- .string()- .optional()- .describe(- 'Redshift cluster or Serverless workgroup endpoint. Required when using an AWS Redshift integration; plain Redshift integrations store the host themselves.'- ),- schema: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneEightSchemaDefault)- .describe('Redshift schema name containing the destination table.'),- table_name: zod- .string()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneEightTableNameDefault)- .describe('Redshift table name to write exported rows into.'),- port: zod- .number()- .default(batchExportsPauseCreateBodyDestinationOneConfigOneEightPortDefault)- .describe('Port the Redshift server listens on.'),- properties_data_type: zod- .enum(['varchar', 'super'])- .describe('\* `varchar` - varchar\n\* `super` - super')- .default(- batchExportsPauseCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault- )- .describe(- 'Data type used for JSON-like columns such as event properties.\n\n\* `varchar` - varchar\n\* `super` - super'- ),- mode: zod- .enum(['INSERT', 'COPY'])- .describe('\* `INSERT` - INSERT\n\* `COPY` - COPY')- .default(batchExportsPauseCreateBodyDestinationOneConfigOneEightModeDefault)- .describe(- 'How rows reach Redshift: batched INSERT statements, or COPY from files staged in S3.\n\n\* `INSERT` - INSERT\n\* `COPY` - COPY'- ),- copy_inputs: zod- .object({- s3_bucket: zod- .string()- .describe('S3 bucket where files are staged before the Redshift COPY.'),- region_name: zod.string().describe('AWS region of the staging S3 bucket.'),- s3_key_prefix: zod- .string()- .describe('Key prefix for staged files in the S3 bucket.'),- authorization: zod- .union([- zod.number().describe('ID of an aws-s3-kind Integration.'),- zod- .string()- .describe('ARN of an IAM role attached to the Redshift cluster.'),- zod.object({- aws_access_key_id: zod.string(),- aws_secret_access_key: zod.string(),- }),- ])- .describe(- 'Authorization for Redshift to read staged files during COPY: the ARN of an IAM role attached to the cluster, inline AWS credentials, or the id of an aws-s3-kind Integration.'- ),- bucket_credentials: zod- .union([- zod.number().describe('ID of an aws-s3-kind Integration.'),- zod.object({- aws_access_key_id: zod.string(),- aws_secret_access_key: zod.string(),- }),- ])- .describe(- 'Credentials used to stage files in the S3 bucket: inline AWS credentials or the id of an aws-s3-kind Integration.'- ),- })- .describe(- 'S3 staging configuration for a Redshift batch export running in COPY mode.'- )- .optional()- .describe("S3 staging configuration, required when mode is 'COPY'."),- type: zod.enum(['Redshift']),- })- .describe(- 'Typed configuration for a Redshift batch-export destination.\n\nConnection credentials may live in a linked Integration (when one is provided) or inline in\nthis config (legacy). Mirrors the non-credential fields of `RedshiftBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- ])- .describe(- 'Destination-specific configuration. Fields depend on `type`. Credentials for integration-backed destinations (Databricks, AzureBlob, BigQuery, Postgres, AwsS3, S3Compatible, Snowflake, Redshift) are NOT stored here — they live in the linked Integration. Secret fields are stripped from responses.'- ),- integration: zod.number().nullish().describe('The integration for this destination.'),- integration_id: zod- .number()- .nullish()- .describe(- 'ID of a team-scoped Integration providing credentials, for destinations that authenticate through one. Required for all of them.'- ),- })- .describe(- 'Serializer for an BatchExportDestination model.\n\nThe `config` field is polymorphic and typed only for destinations that keep\ncredentials in the linked Integration (currently Databricks, AzureBlob, BigQuery, Postgres,\nAwsS3, S3Compatible, Snowflake, Redshift). Other destination types accept the same JSON shape\nbut without a typed OpenAPI schema. Secret fields are stripped from `config` on read.'- )- .describe('Destination configuration (type, config, and optional integration).'),- interval: zod- .enum(['hour', 'day', 'week', 'every 5 minutes', 'every 15 minutes'])- .describe(- '\* `hour` - hour\n\* `day` - day\n\* `week` - week\n\* `every 5 minutes` - every 5 minutes\n\* `every 15 minutes` - every 15 minutes'- )- .describe(- 'How often the batch export should run.\n\n\* `hour` - hour\n\* `day` - day\n\* `week` - week\n\* `every 5 minutes` - every 5 minutes\n\* `every 15 minutes` - every 15 minutes'- ),- paused: zod.boolean().optional().describe('Whether this BatchExport is paused or not.'),- last_paused_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe('The timestamp at which this BatchExport was last paused.'),- start_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe("Time before which any Batch Export runs won't be triggered."),- end_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe("Time after which any Batch Export runs won't be triggered."),- hogql_query: zod- .string()- .nullish()- .describe(- "HogQL SELECT query. With model 'hogql', its results are the data exported by every run. The query may reference the {data_interval_start} and {data_interval_end} placeholders, replaced with each run's data interval bounds, for example: WHERE timestamp >= {data_interval_start} AND timestamp < {data_interval_end}. Without them every run exports all rows the query returns. With model 'events', it defines a custom schema of columns to export instead. Required when model is 'hogql'."- ),- filters: zod.unknown().optional(),- timezone: zod- .union([zod.string(), zod.null()])- .optional()- .describe(- 'IANA timezone name controlling daily and weekly interval boundaries. Defaults to UTC.\n\n\* `Africa\/Abidjan` - Africa\/Abidjan\n\* `Africa\/Accra` - Africa\/Accra\n\* `Africa\/Addis_Ababa` - Africa\/Addis_Ababa\n\* `Africa\/Algiers` - Africa\/Algiers\n\* `Africa\/Asmara` - Africa\/Asmara\n\* `Africa\/Asmera` - Africa\/Asmera\n\* `Africa\/Bamako` - Africa\/Bamako\n\* `Africa\/Bangui` - Africa\/Bangui\n\* `Africa\/Banjul` - Africa\/Banjul\n\* `Africa\/Bissau` - Africa\/Bissau\n\* `Africa\/Blantyre` - Africa\/Blantyre\n\* `Africa\/Brazzaville` - Africa\/Brazzaville\n\* `Africa\/Bujumbura` - Africa\/Bujumbura\n\* `Africa\/Cairo` - Africa\/Cairo\n\* `Africa\/Casablanca` - Africa\/Casablanca\n\* `Africa\/Ceuta` - Africa\/Ceuta\n\* `Africa\/Conakry` - Africa\/Conakry\n\* `Africa\/Dakar` - Africa\/Dakar\n\* `Africa\/Dar_es_Salaam` - Africa\/Dar_es_Salaam\n\* `Africa\/Djibouti` - Africa\/Djibouti\n\* `Africa\/Douala` - Africa\/Douala\n\* `Africa\/El_Aaiun` - Africa\/El_Aaiun\n\* `Africa\/Freetown` - Africa\/Freetown\n\* `Africa\/Gaborone` - Africa\/Gaborone\n\* `Africa\/Harare` - Africa\/Harare\n\* `Africa\/Johannesburg` - Africa\/Johannesburg\n\* `Africa\/Juba` - Africa\/Juba\n\* `Africa\/Kampala` - Africa\/Kampala\n\* `Africa\/Khartoum` - Africa\/Khartoum\n\* `Africa\/Kigali` - Africa\/Kigali\n\* `Africa\/Kinshasa` - Africa\/Kinshasa\n\* `Africa\/Lagos` - Africa\/Lagos\n\* `Africa\/Libreville` - Africa\/Libreville\n\* `Africa\/Lome` - Africa\/Lome\n\* `Africa\/Luanda` - Africa\/Luanda\n\* `Africa\/Lubumbashi` - Africa\/Lubumbashi\n\* `Africa\/Lusaka` - Africa\/Lusaka\n\* `Africa\/Malabo` - Africa\/Malabo\n\* `Africa\/Maputo` - Africa\/Maputo\n\* `Africa\/Maseru` - Africa\/Maseru\n\* `Africa\/Mbabane` - Africa\/Mbabane\n\* `Africa\/Mogadishu` - Africa\/Mogadishu\n\* `Africa\/Monrovia` - Africa\/Monrovia\n\* `Africa\/Nairobi` - Africa\/Nairobi\n\* `Africa\/Ndjamena` - Africa\/Ndjamena\n\* `Africa\/Niamey` - Africa\/Niamey\n\* `Africa\/Nouakchott` - Africa\/Nouakchott\n\* `Africa\/Ouagadougou` - Africa\/Ouagadougou\n\* `Africa\/Porto-Novo` - Africa\/Porto-Novo\n\* `Africa\/Sao_Tome` - Africa\/Sao_Tome\n\* `Africa\/Timbuktu` - Africa\/Timbuktu\n\* `Africa\/Tripoli` - Africa\/Tripoli\n\* `Africa\/Tunis` - Africa\/Tunis\n\* `Africa\/Windhoek` - Africa\/Windhoek\n\* `America\/Adak` - America\/Adak\n\* `America\/Anchorage` - America\/Anchorage\n\* `America\/Anguilla` - America\/Anguilla\n\* `America\/Antigua` - America\/Antigua\n\* `America\/Araguaina` - America\/Araguaina\n\* `America\/Argentina\/Buenos_Aires` - America\/Argentina\/Buenos_Aires\n\* `America\/Argentina\/Catamarca` - America\/Argentina\/Catamarca\n\* `America\/Argentina\/ComodRivadavia` - America\/Argentina\/ComodRivadavia\n\* `America\/Argentina\/Cordoba` - America\/Argentina\/Cordoba\n\* `America\/Argentina\/Jujuy` - America\/Argentina\/Jujuy\n\* `America\/Argentina\/La_Rioja` - America\/Argentina\/La_Rioja\n\* `America\/Argentina\/Mendoza` - America\/Argentina\/Mendoza\n\* `America\/Argentina\/Rio_Gallegos` - America\/Argentina\/Rio_Gallegos\n\* `America\/Argentina\/Salta` - America\/Argentina\/Salta\n\* `America\/Argentina\/San_Juan` - America\/Argentina\/San_Juan\n\* `America\/Argentina\/San_Luis` - America\/Argentina\/San_Luis\n\* `America\/Argentina\/Tucuman` - America\/Argentina\/Tucuman\n\* `America\/Argentina\/Ushuaia` - America\/Argentina\/Ushuaia\n\* `America\/Aruba` - America\/Aruba\n\* `America\/Asuncion` - America\/Asuncion\n\* `America\/Atikokan` - America\/Atikokan\n\* `America\/Atka` - America\/Atka\n\* `America\/Bahia` - America\/Bahia\n\* `America\/Bahia_Banderas` - America\/Bahia_Banderas\n\* `America\/Barbados` - America\/Barbados\n\* `America\/Belem` - America\/Belem\n\* `America\/Belize` - America\/Belize\n\* `America\/Blanc-Sablon` - America\/Blanc-Sablon\n\* `America\/Boa_Vista` - America\/Boa_Vista\n\* `America\/Bogota` - America\/Bogota\n\* `America\/Boise` - America\/Boise\n\* `America\/Buenos_Aires` - America\/Buenos_Aires\n\* `America\/Cambridge_Bay` - America\/Cambridge_Bay\n\* `America\/Campo_Grande` - America\/Campo_Grande\n\* `America\/Cancun` - America\/Cancun\n\* `America\/Caracas` - America\/Caracas\n\* `America\/Catamarca` - America\/Catamarca\n\* `America\/Cayenne` - America\/Cayenne\n\* `America\/Cayman` - America\/Cayman\n\* `America\/Chicago` - America\/Chicago\n\* `America\/Chihuahua` - America\/Chihuahua\n\* `America\/Ciudad_Juarez` - America\/Ciudad_Juarez\n\* `America\/Coral_Harbour` - America\/Coral_Harbour\n\* `America\/Cordoba` - America\/Cordoba\n\* `America\/Costa_Rica` - America\/Costa_Rica\n\* `America\/Creston` - America\/Creston\n\* `America\/Cuiaba` - America\/Cuiaba\n\* `America\/Curacao` - America\/Curacao\n\* `America\/Danmarkshavn` - America\/Danmarkshavn\n\* `America\/Dawson` - America\/Dawson\n\* `America\/Dawson_Creek` - America\/Dawson_Creek\n\* `America\/Denver` - America\/Denver\n\* `America\/Detroit` - America\/Detroit\n\* `America\/Dominica` - America\/Dominica\n\* `America\/Edmonton` - America\/Edmonton\n\* `America\/Eirunepe` - America\/Eirunepe\n\* `America\/El_Salvador` - America\/El_Salvador\n\* `America\/Ensenada` - America\/Ensenada\n\* `America\/Fort_Nelson` - America\/Fort_Nelson\n\* `America\/Fort_Wayne` - America\/Fort_Wayne\n\* `America\/Fortaleza` - America\/Fortaleza\n\* `America\/Glace_Bay` - America\/Glace_Bay\n\* `America\/Godthab` - America\/Godthab\n\* `America\/Goose_Bay` - America\/Goose_Bay\n\* `America\/Grand_Turk` - America\/Grand_Turk\n\* `America\/Grenada` - America\/Grenada\n\* `America\/Guadeloupe` - America\/Guadeloupe\n\* `America\/Guatemala` - America\/Guatemala\n\* `America\/Guayaquil` - America\/Guayaquil\n\* `America\/Guyana` - America\/Guyana\n\* `America\/Halifax` - America\/Halifax\n\* `America\/Havana` - America\/Havana\n\* `America\/Hermosillo` - America\/Hermosillo\n\* `America\/Indiana\/Indianapolis` - America\/Indiana\/Indianapolis\n\* `America\/Indiana\/Knox` - America\/Indiana\/Knox\n\* `America\/Indiana\/Marengo` - America\/Indiana\/Marengo\n\* `America\/Indiana\/Petersburg` - America\/Indiana\/Petersburg\n\* `America\/Indiana\/Tell_City` - America\/Indiana\/Tell_City\n\* `America\/Indiana\/Vevay` - America\/Indiana\/Vevay\n\* `America\/Indiana\/Vincennes` - America\/Indiana\/Vincennes\n\* `America\/Indiana\/Winamac` - America\/Indiana\/Winamac\n\* `America\/Indianapolis` - America\/Indianapolis\n\* `America\/Inuvik` - America\/Inuvik\n\* `America\/Iqaluit` - America\/Iqaluit\n\* `America\/Jamaica` - America\/Jamaica\n\* `America\/Jujuy` - America\/Jujuy\n\* `America\/Juneau` - America\/Juneau\n\* `America\/Kentucky\/Louisville` - America\/Kentucky\/Louisville\n\* `America\/Kentucky\/Monticello` - America\/Kentucky\/Monticello\n\* `America\/Knox_IN` - America\/Knox_IN\n\* `America\/Kralendijk` - America\/Kralendijk\n\* `America\/La_Paz` - America\/La_Paz\n\* `America\/Lima` - America\/Lima\n\* `America\/Los_Angeles` - America\/Los_Angeles\n\* `America\/Louisville` - America\/Louisville\n\* `America\/Lower_Princes` - America\/Lower_Princes\n\* `America\/Maceio` - America\/Maceio\n\* `America\/Managua` - America\/Managua\n\* `America\/Manaus` - America\/Manaus\n\* `America\/Marigot` - America\/Marigot\n\* `America\/Martinique` - America\/Martinique\n\* `America\/Matamoros` - America\/Matamoros\n\* `America\/Mazatlan` - America\/Mazatlan\n\* `America\/Mendoza` - America\/Mendoza\n\* `America\/Menominee` - America\/Menominee\n\* `America\/Merida` - America\/Merida\n\* `America\/Metlakatla` - America\/Metlakatla\n\* `America\/Mexico_City` - America\/Mexico_City\n\* `America\/Miquelon` - America\/Miquelon\n\* `America\/Moncton` - America\/Moncton\n\* `America\/Monterrey` - America\/Monterrey\n\* `America\/Montevideo` - America\/Montevideo\n\* `America\/Montreal` - America\/Montreal\n\* `America\/Montserrat` - America\/Montserrat\n\* `America\/Nassau` - America\/Nassau\n\* `America\/New_York` - America\/New_York\n\* `America\/Nipigon` - America\/Nipigon\n\* `America\/Nome` - America\/Nome\n\* `America\/Noronha` - America\/Noronha\n\* `America\/North_Dakota\/Beulah` - America\/North_Dakota\/Beulah\n\* `America\/North_Dakota\/Center` - America\/North_Dakota\/Center\n\* `America\/North_Dakota\/New_Salem` - America\/North_Dakota\/New_Salem\n\* `America\/Nuuk` - America\/Nuuk\n\* `America\/Ojinaga` - America\/Ojinaga\n\* `America\/Panama` - America\/Panama\n\* `America\/Pangnirtung` - America\/Pangnirtung\n\* `America\/Paramaribo` - America\/Paramaribo\n\* `America\/Phoenix` - America\/Phoenix\n\* `America\/Port-au-Prince` - America\/Port-au-Prince\n\* `America\/Port_of_Spain` - America\/Port_of_Spain\n\* `America\/Porto_Acre` - America\/Porto_Acre\n\* `America\/Porto_Velho` - America\/Porto_Velho\n\* `America\/Puerto_Rico` - America\/Puerto_Rico\n\* `America\/Punta_Arenas` - America\/Punta_Arenas\n\* `America\/Rainy_River` - America\/Rainy_River\n\* `America\/Rankin_Inlet` - America\/Rankin_Inlet\n\* `America\/Recife` - America\/Recife\n\* `America\/Regina` - America\/Regina\n\* `America\/Resolute` - America\/Resolute\n\* `America\/Rio_Branco` - America\/Rio_Branco\n\* `America\/Rosario` - America\/Rosario\n\* `America\/Santa_Isabel` - America\/Santa_Isabel\n\* `America\/Santarem` - America\/Santarem\n\* `America\/Santiago` - America\/Santiago\n\* `America\/Santo_Domingo` - America\/Santo_Domingo\n\* `America\/Sao_Paulo` - America\/Sao_Paulo\n\* `America\/Scoresbysund` - America\/Scoresbysund\n\* `America\/Shiprock` - America\/Shiprock\n\* `America\/Sitka` - America\/Sitka\n\* `America\/St_Barthelemy` - America\/St_Barthelemy\n\* `America\/St_Johns` - America\/St_Johns\n\* `America\/St_Kitts` - America\/St_Kitts\n\* `America\/St_Lucia` - America\/St_Lucia\n\* `America\/St_Thomas` - America\/St_Thomas\n\* `America\/St_Vincent` - America\/St_Vincent\n\* `America\/Swift_Current` - America\/Swift_Current\n\* `America\/Tegucigalpa` - America\/Tegucigalpa\n\* `America\/Thule` - America\/Thule\n\* `America\/Thunder_Bay` - America\/Thunder_Bay\n\* `America\/Tijuana` - America\/Tijuana\n\* `America\/Toronto` - America\/Toronto\n\* `America\/Tortola` - America\/Tortola\n\* `America\/Vancouver` - America\/Vancouver\n\* `America\/Virgin` - America\/Virgin\n\* `America\/Whitehorse` - America\/Whitehorse\n\* `America\/Winnipeg` - America\/Winnipeg\n\* `America\/Yakutat` - America\/Yakutat\n\* `America\/Yellowknife` - America\/Yellowknife\n\* `Antarctica\/Casey` - Antarctica\/Casey\n\* `Antarctica\/Davis` - Antarctica\/Davis\n\* `Antarctica\/DumontDUrville` - Antarctica\/DumontDUrville\n\* `Antarctica\/Macquarie` - Antarctica\/Macquarie\n\* `Antarctica\/Mawson` - Antarctica\/Mawson\n\* `Antarctica\/McMurdo` - Antarctica\/McMurdo\n\* `Antarctica\/Palmer` - Antarctica\/Palmer\n\* `Antarctica\/Rothera` - Antarctica\/Rothera\n\* `Antarctica\/South_Pole` - Antarctica\/South_Pole\n\* `Antarctica\/Syowa` - Antarctica\/Syowa\n\* `Antarctica\/Troll` - Antarctica\/Troll\n\* `Antarctica\/Vostok` - Antarctica\/Vostok\n\* `Arctic\/Longyearbyen` - Arctic\/Longyearbyen\n\* `Asia\/Aden` - Asia\/Aden\n\* `Asia\/Almaty` - Asia\/Almaty\n\* `Asia\/Amman` - Asia\/Amman\n\* `Asia\/Anadyr` - Asia\/Anadyr\n\* `Asia\/Aqtau` - Asia\/Aqtau\n\* `Asia\/Aqtobe` - Asia\/Aqtobe\n\* `Asia\/Ashgabat` - Asia\/Ashgabat\n\* `Asia\/Ashkhabad` - Asia\/Ashkhabad\n\* `Asia\/Atyrau` - Asia\/Atyrau\n\* `Asia\/Baghdad` - Asia\/Baghdad\n\* `Asia\/Bahrain` - Asia\/Bahrain\n\* `Asia\/Baku` - Asia\/Baku\n\* `Asia\/Bangkok` - Asia\/Bangkok\n\* `Asia\/Barnaul` - Asia\/Barnaul\n\* `Asia\/Beirut` - Asia\/Beirut\n\* `Asia\/Bishkek` - Asia\/Bishkek\n\* `Asia\/Brunei` - Asia\/Brunei\n\* `Asia\/Calcutta` - Asia\/Calcutta\n\* `Asia\/Chita` - Asia\/Chita\n\* `Asia\/Choibalsan` - Asia\/Choibalsan\n\* `Asia\/Chongqing` - Asia\/Chongqing\n\* `Asia\/Chungking` - Asia\/Chungking\n\* `Asia\/Colombo` - Asia\/Colombo\n\* `Asia\/Dacca` - Asia\/Dacca\n\* `Asia\/Damascus` - Asia\/Damascus\n\* `Asia\/Dhaka` - Asia\/Dhaka\n\* `Asia\/Dili` - Asia\/Dili\n\* `Asia\/Dubai` - Asia\/Dubai\n\* `Asia\/Dushanbe` - Asia\/Dushanbe\n\* `Asia\/Famagusta` - Asia\/Famagusta\n\* `Asia\/Gaza` - Asia\/Gaza\n\* `Asia\/Harbin` - Asia\/Harbin\n\* `Asia\/Hebron` - Asia\/Hebron\n\* `Asia\/Ho_Chi_Minh` - Asia\/Ho_Chi_Minh\n\* `Asia\/Hong_Kong` - Asia\/Hong_Kong\n\* `Asia\/Hovd` - Asia\/Hovd\n\* `Asia\/Irkutsk` - Asia\/Irkutsk\n\* `Asia\/Istanbul` - Asia\/Istanbul\n\* `Asia\/Jakarta` - Asia\/Jakarta\n\* `Asia\/Jayapura` - Asia\/Jayapura\n\* `Asia\/Jerusalem` - Asia\/Jerusalem\n\* `Asia\/Kabul` - Asia\/Kabul\n\* `Asia\/Kamchatka` - Asia\/Kamchatka\n\* `Asia\/Karachi` - Asia\/Karachi\n\* `Asia\/Kashgar` - Asia\/Kashgar\n\* `Asia\/Kathmandu` - Asia\/Kathmandu\n\* `Asia\/Katmandu` - Asia\/Katmandu\n\* `Asia\/Khandyga` - Asia\/Khandyga\n\* `Asia\/Kolkata` - Asia\/Kolkata\n\* `Asia\/Krasnoyarsk` - Asia\/Krasnoyarsk\n\* `Asia\/Kuala_Lumpur` - Asia\/Kuala_Lumpur\n\* `Asia\/Kuching` - Asia\/Kuching\n\* `Asia\/Kuwait` - Asia\/Kuwait\n\* `Asia\/Macao` - Asia\/Macao\n\* `Asia\/Macau` - Asia\/Macau\n\* `Asia\/Magadan` - Asia\/Magadan\n\* `Asia\/Makassar` - Asia\/Makassar\n\* `Asia\/Manila` - Asia\/Manila\n\* `Asia\/Muscat` - Asia\/Muscat\n\* `Asia\/Nicosia` - Asia\/Nicosia\n\* `Asia\/Novokuznetsk` - Asia\/Novokuznetsk\n\* `Asia\/Novosibirsk` - Asia\/Novosibirsk\n\* `Asia\/Omsk` - Asia\/Omsk\n\* `Asia\/Oral` - Asia\/Oral\n\* `Asia\/Phnom_Penh` - Asia\/Phnom_Penh\n\* `Asia\/Pontianak` - Asia\/Pontianak\n\* `Asia\/Pyongyang` - Asia\/Pyongyang\n\* `Asia\/Qatar` - Asia\/Qatar\n\* `Asia\/Qostanay` - Asia\/Qostanay\n\* `Asia\/Qyzylorda` - Asia\/Qyzylorda\n\* `Asia\/Rangoon` - Asia\/Rangoon\n\* `Asia\/Riyadh` - Asia\/Riyadh\n\* `Asia\/Saigon` - Asia\/Saigon\n\* `Asia\/Sakhalin` - Asia\/Sakhalin\n\* `Asia\/Samarkand` - Asia\/Samarkand\n\* `Asia\/Seoul` - Asia\/Seoul\n\* `Asia\/Shanghai` - Asia\/Shanghai\n\* `Asia\/Singapore` - Asia\/Singapore\n\* `Asia\/Srednekolymsk` - Asia\/Srednekolymsk\n\* `Asia\/Taipei` - Asia\/Taipei\n\* `Asia\/Tashkent` - Asia\/Tashkent\n\* `Asia\/Tbilisi` - Asia\/Tbilisi\n\* `Asia\/Tehran` - Asia\/Tehran\n\* `Asia\/Tel_Aviv` - Asia\/Tel_Aviv\n\* `Asia\/Thimbu` - Asia\/Thimbu\n\* `Asia\/Thimphu` - Asia\/Thimphu\n\* `Asia\/Tokyo` - Asia\/Tokyo\n\* `Asia\/Tomsk` - Asia\/Tomsk\n\* `Asia\/Ujung_Pandang` - Asia\/Ujung_Pandang\n\* `Asia\/Ulaanbaatar` - Asia\/Ulaanbaatar\n\* `Asia\/Ulan_Bator` - Asia\/Ulan_Bator\n\* `Asia\/Urumqi` - Asia\/Urumqi\n\* `Asia\/Ust-Nera` - Asia\/Ust-Nera\n\* `Asia\/Vientiane` - Asia\/Vientiane\n\* `Asia\/Vladivostok` - Asia\/Vladivostok\n\* `Asia\/Yakutsk` - Asia\/Yakutsk\n\* `Asia\/Yangon` - Asia\/Yangon\n\* `Asia\/Yekaterinburg` - Asia\/Yekaterinburg\n\* `Asia\/Yerevan` - Asia\/Yerevan\n\* `Atlantic\/Azores` - Atlantic\/Azores\n\* `Atlantic\/Bermuda` - Atlantic\/Bermuda\n\* `Atlantic\/Canary` - Atlantic\/Canary\n\* `Atlantic\/Cape_Verde` - Atlantic\/Cape_Verde\n\* `Atlantic\/Faeroe` - Atlantic\/Faeroe\n\* `Atlantic\/Faroe` - Atlantic\/Faroe\n\* `Atlantic\/Jan_Mayen` - Atlantic\/Jan_Mayen\n\* `Atlantic\/Madeira` - Atlantic\/Madeira\n\* `Atlantic\/Reykjavik` - Atlantic\/Reykjavik\n\* `Atlantic\/South_Georgia` - Atlantic\/South_Georgia\n\* `Atlantic\/St_Helena` - Atlantic\/St_Helena\n\* `Atlantic\/Stanley` - Atlantic\/Stanley\n\* `Australia\/ACT` - Australia\/ACT\n\* `Australia\/Adelaide` - Australia\/Adelaide\n\* `Australia\/Brisbane` - Australia\/Brisbane\n\* `Australia\/Broken_Hill` - Australia\/Broken_Hill\n\* `Australia\/Canberra` - Australia\/Canberra\n\* `Australia\/Currie` - Australia\/Currie\n\* `Australia\/Darwin` - Australia\/Darwin\n\* `Australia\/Eucla` - Australia\/Eucla\n\* `Australia\/Hobart` - Australia\/Hobart\n\* `Australia\/LHI` - Australia\/LHI\n\* `Australia\/Lindeman` - Australia\/Lindeman\n\* `Australia\/Lord_Howe` - Australia\/Lord_Howe\n\* `Australia\/Melbourne` - Australia\/Melbourne\n\* `Australia\/NSW` - Australia\/NSW\n\* `Australia\/North` - Australia\/North\n\* `Australia\/Perth` - Australia\/Perth\n\* `Australia\/Queensland` - Australia\/Queensland\n\* `Australia\/South` - Australia\/South\n\* `Australia\/Sydney` - Australia\/Sydney\n\* `Australia\/Tasmania` - Australia\/Tasmania\n\* `Australia\/Victoria` - Australia\/Victoria\n\* `Australia\/West` - Australia\/West\n\* `Australia\/Yancowinna` - Australia\/Yancowinna\n\* `Brazil\/Acre` - Brazil\/Acre\n\* `Brazil\/DeNoronha` - Brazil\/DeNoronha\n\* `Brazil\/East` - Brazil\/East\n\* `Brazil\/West` - Brazil\/West\n\* `CET` - CET\n\* `CST6CDT` - CST6CDT\n\* `Canada\/Atlantic` - Canada\/Atlantic\n\* `Canada\/Central` - Canada\/Central\n\* `Canada\/Eastern` - Canada\/Eastern\n\* `Canada\/Mountain` - Canada\/Mountain\n\* `Canada\/Newfoundland` - Canada\/Newfoundland\n\* `Canada\/Pacific` - Canada\/Pacific\n\* `Canada\/Saskatchewan` - Canada\/Saskatchewan\n\* `Canada\/Yukon` - Canada\/Yukon\n\* `Chile\/Continental` - Chile\/Continental\n\* `Chile\/EasterIsland` - Chile\/EasterIsland\n\* `Cuba` - Cuba\n\* `EET` - EET\n\* `EST` - EST\n\* `EST5EDT` - EST5EDT\n\* `Egypt` - Egypt\n\* `Eire` - Eire\n\* `Etc\/GMT` - Etc\/GMT\n\* `Etc\/GMT+0` - Etc\/GMT+0\n\* `Etc\/GMT+1` - Etc\/GMT+1\n\* `Etc\/GMT+10` - Etc\/GMT+10\n\* `Etc\/GMT+11` - Etc\/GMT+11\n\* `Etc\/GMT+12` - Etc\/GMT+12\n\* `Etc\/GMT+2` - Etc\/GMT+2\n\* `Etc\/GMT+3` - Etc\/GMT+3\n\* `Etc\/GMT+4` - Etc\/GMT+4\n\* `Etc\/GMT+5` - Etc\/GMT+5\n\* `Etc\/GMT+6` - Etc\/GMT+6\n\* `Etc\/GMT+7` - Etc\/GMT+7\n\* `Etc\/GMT+8` - Etc\/GMT+8\n\* `Etc\/GMT+9` - Etc\/GMT+9\n\* `Etc\/GMT-0` - Etc\/GMT-0\n\* `Etc\/GMT-1` - Etc\/GMT-1\n\* `Etc\/GMT-10` - Etc\/GMT-10\n\* `Etc\/GMT-11` - Etc\/GMT-11\n\* `Etc\/GMT-12` - Etc\/GMT-12\n\* `Etc\/GMT-13` - Etc\/GMT-13\n\* `Etc\/GMT-14` - Etc\/GMT-14\n\* `Etc\/GMT-2` - Etc\/GMT-2\n\* `Etc\/GMT-3` - Etc\/GMT-3\n\* `Etc\/GMT-4` - Etc\/GMT-4\n\* `Etc\/GMT-5` - Etc\/GMT-5\n\* `Etc\/GMT-6` - Etc\/GMT-6\n\* `Etc\/GMT-7` - Etc\/GMT-7\n\* `Etc\/GMT-8` - Etc\/GMT-8\n\* `Etc\/GMT-9` - Etc\/GMT-9\n\* `Etc\/GMT0` - Etc\/GMT0\n\* `Etc\/Greenwich` - Etc\/Greenwich\n\* `Etc\/UCT` - Etc\/UCT\n\* `Etc\/UTC` - Etc\/UTC\n\* `Etc\/Universal` - Etc\/Universal\n\* `Etc\/Zulu` - Etc\/Zulu\n\* `Europe\/Amsterdam` - Europe\/Amsterdam\n\* `Europe\/Andorra` - Europe\/Andorra\n\* `Europe\/Astrakhan` - Europe\/Astrakhan\n\* `Europe\/Athens` - Europe\/Athens\n\* `Europe\/Belfast` - Europe\/Belfast\n\* `Europe\/Belgrade` - Europe\/Belgrade\n\* `Europe\/Berlin` - Europe\/Berlin\n\* `Europe\/Bratislava` - Europe\/Bratislava\n\* `Europe\/Brussels` - Europe\/Brussels\n\* `Europe\/Bucharest` - Europe\/Bucharest\n\* `Europe\/Budapest` - Europe\/Budapest\n\* `Europe\/Busingen` - Europe\/Busingen\n\* `Europe\/Chisinau` - Europe\/Chisinau\n\* `Europe\/Copenhagen` - Europe\/Copenhagen\n\* `Europe\/Dublin` - Europe\/Dublin\n\* `Europe\/Gibraltar` - Europe\/Gibraltar\n\* `Europe\/Guernsey` - Europe\/Guernsey\n\* `Europe\/Helsinki` - Europe\/Helsinki\n\* `Europe\/Isle_of_Man` - Europe\/Isle_of_Man\n\* `Europe\/Istanbul` - Europe\/Istanbul\n\* `Europe\/Jersey` - Europe\/Jersey\n\* `Europe\/Kaliningrad` - Europe\/Kaliningrad\n\* `Europe\/Kiev` - Europe\/Kiev\n\* `Europe\/Kirov` - Europe\/Kirov\n\* `Europe\/Kyiv` - Europe\/Kyiv\n\* `Europe\/Lisbon` - Europe\/Lisbon\n\* `Europe\/Ljubljana` - Europe\/Ljubljana\n\* `Europe\/London` - Europe\/London\n\* `Europe\/Luxembourg` - Europe\/Luxembourg\n\* `Europe\/Madrid` - Europe\/Madrid\n\* `Europe\/Malta` - Europe\/Malta\n\* `Europe\/Mariehamn` - Europe\/Mariehamn\n\* `Europe\/Minsk` - Europe\/Minsk\n\* `Europe\/Monaco` - Europe\/Monaco\n\* `Europe\/Moscow` - Europe\/Moscow\n\* `Europe\/Nicosia` - Europe\/Nicosia\n\* `Europe\/Oslo` - Europe\/Oslo\n\* `Europe\/Paris` - Europe\/Paris\n\* `Europe\/Podgorica` - Europe\/Podgorica\n\* `Europe\/Prague` - Europe\/Prague\n\* `Europe\/Riga` - Europe\/Riga\n\* `Europe\/Rome` - Europe\/Rome\n\* `Europe\/Samara` - Europe\/Samara\n\* `Europe\/San_Marino` - Europe\/San_Marino\n\* `Europe\/Sarajevo` - Europe\/Sarajevo\n\* `Europe\/Saratov` - Europe\/Saratov\n\* `Europe\/Simferopol` - Europe\/Simferopol\n\* `Europe\/Skopje` - Europe\/Skopje\n\* `Europe\/Sofia` - Europe\/Sofia\n\* `Europe\/Stockholm` - Europe\/Stockholm\n\* `Europe\/Tallinn` - Europe\/Tallinn\n\* `Europe\/Tirane` - Europe\/Tirane\n\* `Europe\/Tiraspol` - Europe\/Tiraspol\n\* `Europe\/Ulyanovsk` - Europe\/Ulyanovsk\n\* `Europe\/Uzhgorod` - Europe\/Uzhgorod\n\* `Europe\/Vaduz` - Europe\/Vaduz\n\* `Europe\/Vatican` - Europe\/Vatican\n\* `Europe\/Vienna` - Europe\/Vienna\n\* `Europe\/Vilnius` - Europe\/Vilnius\n\* `Europe\/Volgograd` - Europe\/Volgograd\n\* `Europe\/Warsaw` - Europe\/Warsaw\n\* `Europe\/Zagreb` - Europe\/Zagreb\n\* `Europe\/Zaporozhye` - Europe\/Zaporozhye\n\* `Europe\/Zurich` - Europe\/Zurich\n\* `GB` - GB\n\* `GB-Eire` - GB-Eire\n\* `GMT` - GMT\n\* `GMT+0` - GMT+0\n\* `GMT-0` - GMT-0\n\* `GMT0` - GMT0\n\* `Greenwich` - Greenwich\n\* `HST` - HST\n\* `Hongkong` - Hongkong\n\* `Iceland` - Iceland\n\* `Indian\/Antananarivo` - Indian\/Antananarivo\n\* `Indian\/Chagos` - Indian\/Chagos\n\* `Indian\/Christmas` - Indian\/Christmas\n\* `Indian\/Cocos` - Indian\/Cocos\n\* `Indian\/Comoro` - Indian\/Comoro\n\* `Indian\/Kerguelen` - Indian\/Kerguelen\n\* `Indian\/Mahe` - Indian\/Mahe\n\* `Indian\/Maldives` - Indian\/Maldives\n\* `Indian\/Mauritius` - Indian\/Mauritius\n\* `Indian\/Mayotte` - Indian\/Mayotte\n\* `Indian\/Reunion` - Indian\/Reunion\n\* `Iran` - Iran\n\* `Israel` - Israel\n\* `Jamaica` - Jamaica\n\* `Japan` - Japan\n\* `Kwajalein` - Kwajalein\n\* `Libya` - Libya\n\* `MET` - MET\n\* `MST` - MST\n\* `MST7MDT` - MST7MDT\n\* `Mexico\/BajaNorte` - Mexico\/BajaNorte\n\* `Mexico\/BajaSur` - Mexico\/BajaSur\n\* `Mexico\/General` - Mexico\/General\n\* `NZ` - NZ\n\* `NZ-CHAT` - NZ-CHAT\n\* `Navajo` - Navajo\n\* `PRC` - PRC\n\* `PST8PDT` - PST8PDT\n\* `Pacific\/Apia` - Pacific\/Apia\n\* `Pacific\/Auckland` - Pacific\/Auckland\n\* `Pacific\/Bougainville` - Pacific\/Bougainville\n\* `Pacific\/Chatham` - Pacific\/Chatham\n\* `Pacific\/Chuuk` - Pacific\/Chuuk\n\* `Pacific\/Easter` - Pacific\/Easter\n\* `Pacific\/Efate` - Pacific\/Efate\n\* `Pacific\/Enderbury` - Pacific\/Enderbury\n\* `Pacific\/Fakaofo` - Pacific\/Fakaofo\n\* `Pacific\/Fiji` - Pacific\/Fiji\n\* `Pacific\/Funafuti` - Pacific\/Funafuti\n\* `Pacific\/Galapagos` - Pacific\/Galapagos\n\* `Pacific\/Gambier` - Pacific\/Gambier\n\* `Pacific\/Guadalcanal` - Pacific\/Guadalcanal\n\* `Pacific\/Guam` - Pacific\/Guam\n\* `Pacific\/Honolulu` - Pacific\/Honolulu\n\* `Pacific\/Johnston` - Pacific\/Johnston\n\* `Pacific\/Kanton` - Pacific\/Kanton\n\* `Pacific\/Kiritimati` - Pacific\/Kiritimati\n\* `Pacific\/Kosrae` - Pacific\/Kosrae\n\* `Pacific\/Kwajalein` - Pacific\/Kwajalein\n\* `Pacific\/Majuro` - Pacific\/Majuro\n\* `Pacific\/Marquesas` - Pacific\/Marquesas\n\* `Pacific\/Midway` - Pacific\/Midway\n\* `Pacific\/Nauru` - Pacific\/Nauru\n\* `Pacific\/Niue` - Pacific\/Niue\n\* `Pacific\/Norfolk` - Pacific\/Norfolk\n\* `Pacific\/Noumea` - Pacific\/Noumea\n\* `Pacific\/Pago_Pago` - Pacific\/Pago_Pago\n\* `Pacific\/Palau` - Pacific\/Palau\n\* `Pacific\/Pitcairn` - Pacific\/Pitcairn\n\* `Pacific\/Pohnpei` - Pacific\/Pohnpei\n\* `Pacific\/Ponape` - Pacific\/Ponape\n\* `Pacific\/Port_Moresby` - Pacific\/Port_Moresby\n\* `Pacific\/Rarotonga` - Pacific\/Rarotonga\n\* `Pacific\/Saipan` - Pacific\/Saipan\n\* `Pacific\/Samoa` - Pacific\/Samoa\n\* `Pacific\/Tahiti` - Pacific\/Tahiti\n\* `Pacific\/Tarawa` - Pacific\/Tarawa\n\* `Pacific\/Tongatapu` - Pacific\/Tongatapu\n\* `Pacific\/Truk` - Pacific\/Truk\n\* `Pacific\/Wake` - Pacific\/Wake\n\* `Pacific\/Wallis` - Pacific\/Wallis\n\* `Pacific\/Yap` - Pacific\/Yap\n\* `Poland` - Poland\n\* `Portugal` - Portugal\n\* `ROC` - ROC\n\* `ROK` - ROK\n\* `Singapore` - Singapore\n\* `Turkey` - Turkey\n\* `UCT` - UCT\n\* `US\/Alaska` - US\/Alaska\n\* `US\/Aleutian` - US\/Aleutian\n\* `US\/Arizona` - US\/Arizona\n\* `US\/Central` - US\/Central\n\* `US\/East-Indiana` - US\/East-Indiana\n\* `US\/Eastern` - US\/Eastern\n\* `US\/Hawaii` - US\/Hawaii\n\* `US\/Indiana-Starke` - US\/Indiana-Starke\n\* `US\/Michigan` - US\/Michigan\n\* `US\/Mountain` - US\/Mountain\n\* `US\/Pacific` - US\/Pacific\n\* `US\/Samoa` - US\/Samoa\n\* `UTC` - UTC\n\* `Universal` - Universal\n\* `W-SU` - W-SU\n\* `WET` - WET\n\* `Zulu` - Zulu'- ),- offset_day: zod- .number()- .min(batchExportsPauseCreateBodyOffsetDayMin)- .max(batchExportsPauseCreateBodyOffsetDayMax)- .nullish()- .describe(- "Day-of-week offset for weekly intervals (0=Sunday, 6=Saturday). Only valid when interval is 'week'."- ),- offset_hour: zod- .number()- .min(batchExportsPauseCreateBodyOffsetHourMin)- .max(batchExportsPauseCreateBodyOffsetHourMax)- .nullish()- .describe(- "Hour-of-day offset (0-23) for daily and weekly intervals. Only valid when interval is 'day' or 'week'."- ),- })- .describe('Serializer for a BatchExport model.')--export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault = true-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault = true-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoPrefixDefault = ``-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoFileFormatDefault = `JSONLines`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeTableIdDefault = `events`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault = false-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourSchemaDefault = `public`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourTableNameDefault = `events`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault = false-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFiveFileFormatDefault = `JSONLines`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixFileFormatDefault = `JSONLines`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault = false-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSevenTableNameDefault = `events`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightSchemaDefault = `public`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightTableNameDefault = `events`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPortDefault = 5439-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault = `varchar`-export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightModeDefault = `INSERT`-export const batchExportsRunTestStepCreateBodyOffsetDayMin = 0-export const batchExportsRunTestStepCreateBodyOffsetDayMax = 6--export const batchExportsRunTestStepCreateBodyOffsetHourMin = 0-export const batchExportsRunTestStepCreateBodyOffsetHourMax = 23--export const BatchExportsRunTestStepCreateBody = /* @__PURE__ */ zod- .object({- name: zod.string().describe('A human-readable name for this BatchExport.'),- model: zod- .union([- zod- .enum(['events', 'persons', 'sessions', 'hogql'])- .describe(- '\* `events` - Events\n\* `persons` - Persons\n\* `sessions` - Sessions\n\* `hogql` - Hogql'- ),- zod.enum(['']),- zod.null(),- ])- .optional()- .describe(- 'Which model this BatchExport is exporting.\n\n\* `events` - Events\n\* `persons` - Persons\n\* `sessions` - Sessions\n\* `hogql` - Hogql'- ),- destination: zod- .object({- type: zod- .enum([- 'S3',- 'AwsS3',- 'S3Compatible',- 'Snowflake',- 'Postgres',- 'Redshift',- 'BigQuery',- 'Databricks',- 'AzureBlob',- 'Workflows',- 'HTTP',- 'NoOp',- 'FileDownload',- ])- .describe(- '\* `S3` - S3\n\* `AwsS3` - Aws S3\n\* `S3Compatible` - S3 Compatible\n\* `Snowflake` - Snowflake\n\* `Postgres` - Postgres\n\* `Redshift` - Redshift\n\* `BigQuery` - Bigquery\n\* `Databricks` - Databricks\n\* `AzureBlob` - Azure Blob\n\* `Workflows` - Workflows\n\* `HTTP` - Http\n\* `NoOp` - Noop\n\* `FileDownload` - File Download'- )- .describe(- 'A choice of supported BatchExportDestination types.\n\n\* `S3` - S3\n\* `AwsS3` - Aws S3\n\* `S3Compatible` - S3 Compatible\n\* `Snowflake` - Snowflake\n\* `Postgres` - Postgres\n\* `Redshift` - Redshift\n\* `BigQuery` - Bigquery\n\* `Databricks` - Databricks\n\* `AzureBlob` - Azure Blob\n\* `Workflows` - Workflows\n\* `HTTP` - Http\n\* `NoOp` - Noop\n\* `FileDownload` - File Download'- ),- config: zod- .union([- zod- .object({- http_path: zod.string().describe('Databricks SQL warehouse HTTP path.'),- catalog: zod.string().describe('Unity Catalog name.'),- schema: zod.string().describe('Schema (database) name inside the catalog.'),- table_name: zod.string().describe('Destination table name.'),- use_variant_type: zod- .boolean()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault- )- .describe('Whether to use the Databricks VARIANT type for JSON-like columns.'),- use_automatic_schema_evolution: zod- .boolean()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault- )- .describe(- 'Whether to let Databricks evolve the destination table schema automatically.'- ),- type: zod.enum(['Databricks']),- })- .describe(- 'Typed configuration for a Databricks batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors\n`DatabricksBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- container_name: zod.string().describe('Azure Blob Storage container name.'),- prefix: zod- .string()- .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoPrefixDefault)- .describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoFileFormatDefault- )- .describe(- 'File format used for exported objects.\n\n\* `JSONLines` - JSONLines\n\* `Parquet` - Parquet'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- type: zod.enum(['AzureBlob']),- })- .describe(- 'Typed configuration for an Azure Blob Storage batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors\n`AzureBlobBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- dataset_id: zod.string().describe('BigQuery dataset ID to write to.'),- table_id: zod- .string()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeTableIdDefault- )- .describe('BigQuery table ID inside the dataset.'),- use_json_type: zod- .boolean()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault- )- .describe(- "Whether to export 'properties', 'set', and 'set_once' fields as the BigQuery JSON type rather than STRING. Cannot be changed after the export is created."- ),- type: zod.enum(['BigQuery']),- })- .describe(- 'Typed configuration for a BigQuery batch-export destination.\n\nCredentials live in the linked Integration, not in this config. Mirrors the\nnon-credential fields of `BigQueryBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('PostgreSQL database name to connect to.'),- schema: zod- .string()- .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourSchemaDefault)- .describe('PostgreSQL schema name containing the destination table.'),- table_name: zod- .string()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourTableNameDefault- )- .describe('PostgreSQL table name to write exported rows into.'),- has_self_signed_cert: zod- .boolean()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault- )- .describe(- 'Legacy SSL option for direct credential configuration. Ignored when using a PostgreSQL integration.'- ),- type: zod.enum(['Postgres']),- })- .describe(- 'Typed configuration for a PostgreSQL batch-export destination.\n\nConnection credentials may live in a linked Integration (when one is provided) or\ninline in this config (legacy). Mirrors the non-credential fields of\n`PostgresBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- bucket_name: zod.string().describe('Name of the destination bucket.'),- region: zod.string().describe("Region the bucket is in (e.g. 'us-east-1')."),- prefix: zod.string().describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneFiveFileFormatDefault- )- .describe(- 'File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- encryption: zod- .string()- .nullish()- .describe(- "Optional S3 server-side encryption algorithm (e.g. 'AES256' or 'aws:kms')."- ),- kms_key_id: zod- .string()- .nullish()- .describe("KMS key ID to use when encryption is 'aws:kms'."),- type: zod.enum(['AwsS3']),- })- .describe(- 'Typed configuration for an AWS S3 batch-export destination.\n\nAWS credentials live in the linked aws-s3 Integration. Mirrors the non-credential fields of\n`AwsS3BatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- bucket_name: zod.string().describe('Name of the destination bucket.'),- region: zod.string().describe("Region the bucket is in (e.g. 'us-east-1')."),- prefix: zod.string().describe('Object key prefix applied to every exported file.'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Optional compression codec applied to exported files. Valid codecs depend on file_format.\n\n\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- file_format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixFileFormatDefault- )- .describe(- 'File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'- ),- max_file_size_mb: zod- .number()- .nullish()- .describe(- 'If set, rolls to a new file once the current file exceeds this size in MB.'- ),- legacy_parquet_extension: zod- .boolean()- .optional()- .describe(- "Whether Parquet files keep the compression codec in their extension, for example '.parquet.zst' rather than '.parquet'. Parquet records its codec inside the file, so new exports leave it out. An export that already wrote Parquet files before this setting existed keeps it, so that pipelines matching on the old names do not break. Has no effect on JSON Lines, which always carries the codec in its extension."- ),- use_virtual_style_addressing: zod- .boolean()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault- )- .describe('Use virtual-hosted-style addressing rather than path-style.'),- type: zod.enum(['S3Compatible']),- })- .describe(- 'Typed configuration for an S3-compatible batch-export destination (Cloudflare R2,\nDigitalOcean Spaces, etc.).\n\nCredentials and the provider `endpoint_url` live in the linked s3-compatible Integration.\nMirrors the non-credential fields of `S3CompatibleBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('Snowflake database to write to.'),- warehouse: zod.string().describe('Snowflake compute warehouse to use.'),- schema: zod- .string()- .describe('Schema inside the database containing the destination table.'),- table_name: zod- .string()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneSevenTableNameDefault- )- .describe('Destination table name.'),- role: zod- .string()- .nullish()- .describe('Optional Snowflake role to assume for the session.'),- type: zod.enum(['Snowflake']),- })- .describe(- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- zod- .object({- database: zod.string().describe('Redshift database name to connect to.'),- host: zod- .string()- .optional()- .describe(- 'Redshift cluster or Serverless workgroup endpoint. Required when using an AWS Redshift integration; plain Redshift integrations store the host themselves.'- ),- schema: zod- .string()- .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightSchemaDefault)- .describe('Redshift schema name containing the destination table.'),- table_name: zod- .string()- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightTableNameDefault- )- .describe('Redshift table name to write exported rows into.'),- port: zod- .number()- .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPortDefault)- .describe('Port the Redshift server listens on.'),- properties_data_type: zod- .enum(['varchar', 'super'])- .describe('\* `varchar` - varchar\n\* `super` - super')- .default(- batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault- )- .describe(- 'Data type used for JSON-like columns such as event properties.\n\n\* `varchar` - varchar\n\* `super` - super'- ),- mode: zod- .enum(['INSERT', 'COPY'])- .describe('\* `INSERT` - INSERT\n\* `COPY` - COPY')- .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightModeDefault)- .describe(- 'How rows reach Redshift: batched INSERT statements, or COPY from files staged in S3.\n\n\* `INSERT` - INSERT\n\* `COPY` - COPY'- ),- copy_inputs: zod- .object({- s3_bucket: zod- .string()- .describe('S3 bucket where files are staged before the Redshift COPY.'),- region_name: zod.string().describe('AWS region of the staging S3 bucket.'),- s3_key_prefix: zod- .string()- .describe('Key prefix for staged files in the S3 bucket.'),- authorization: zod- .union([- zod.number().describe('ID of an aws-s3-kind Integration.'),- zod- .string()- .describe('ARN of an IAM role attached to the Redshift cluster.'),- zod.object({- aws_access_key_id: zod.string(),- aws_secret_access_key: zod.string(),- }),- ])- .describe(- 'Authorization for Redshift to read staged files during COPY: the ARN of an IAM role attached to the cluster, inline AWS credentials, or the id of an aws-s3-kind Integration.'- ),- bucket_credentials: zod- .union([- zod.number().describe('ID of an aws-s3-kind Integration.'),- zod.object({- aws_access_key_id: zod.string(),- aws_secret_access_key: zod.string(),- }),- ])- .describe(- 'Credentials used to stage files in the S3 bucket: inline AWS credentials or the id of an aws-s3-kind Integration.'- ),- })- .describe(- 'S3 staging configuration for a Redshift batch export running in COPY mode.'- )- .optional()- .describe("S3 staging configuration, required when mode is 'COPY'."),- type: zod.enum(['Redshift']),- })- .describe(- 'Typed configuration for a Redshift batch-export destination.\n\nConnection credentials may live in a linked Integration (when one is provided) or inline in\nthis config (legacy). Mirrors the non-credential fields of `RedshiftBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'- ),- ])- .describe(- 'Destination-specific configuration. Fields depend on `type`. Credentials for integration-backed destinations (Databricks, AzureBlob, BigQuery, Postgres, AwsS3, S3Compatible, Snowflake, Redshift) are NOT stored here — they live in the linked Integration. Secret fields are stripped from responses.'- ),- integration: zod.number().nullish().describe('The integration for this destination.'),- integration_id: zod- .number()- .nullish()- .describe(- 'ID of a team-scoped Integration providing credentials, for destinations that authenticate through one. Required for all of them.'- ),- })- .describe(- 'Serializer for an BatchExportDestination model.\n\nThe `config` field is polymorphic and typed only for destinations that keep\ncredentials in the linked Integration (currently Databricks, AzureBlob, BigQuery, Postgres,\nAwsS3, S3Compatible, Snowflake, Redshift). Other destination types accept the same JSON shape\nbut without a typed OpenAPI schema. Secret fields are stripped from `config` on read.'- )- .describe('Destination configuration (type, config, and optional integration).'),- interval: zod- .enum(['hour', 'day', 'week', 'every 5 minutes', 'every 15 minutes'])- .describe(- '\* `hour` - hour\n\* `day` - day\n\* `week` - week\n\* `every 5 minutes` - every 5 minutes\n\* `every 15 minutes` - every 15 minutes'- )- .describe(- 'How often the batch export should run.\n\n\* `hour` - hour\n\* `day` - day\n\* `week` - week\n\* `every 5 minutes` - every 5 minutes\n\* `every 15 minutes` - every 15 minutes'- ),- paused: zod.boolean().optional().describe('Whether this BatchExport is paused or not.'),- last_paused_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe('The timestamp at which this BatchExport was last paused.'),- start_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe("Time before which any Batch Export runs won't be triggered."),- end_at: zod.iso- .datetime({ offset: true })- .nullish()- .describe("Time after which any Batch Export runs won't be triggered."),- hogql_query: zod- .string()- .nullish()- .describe(- "HogQL SELECT query. With model 'hogql', its results are the data exported by every run. The query may reference the {data_interval_start} and {data_interval_end} placeholders, replaced with each run's data interval bounds, for example: WHERE timestamp >= {data_interval_start} AND timestamp < {data_interval_end}. Without them every run exports all rows the query returns. With model 'events', it defines a custom schema of columns to export instead. Required when model is 'hogql'."- ),- filters: zod.unknown().optional(),- timezone: zod- .union([zod.string(), zod.null()])- .optional()- .describe(- 'IANA timezone name controlling daily and weekly interval boundaries. Defaults to UTC.\n\n\* `Africa\/Abidjan` - Africa\/Abidjan\n\* `Africa\/Accra` - Africa\/Accra\n\* `Africa\/Addis_Ababa` - Africa\/Addis_Ababa\n\* `Africa\/Algiers` - Africa\/Algiers\n\* `Africa\/Asmara` - Africa\/Asmara\n\* `Africa\/Asmera` - Africa\/Asmera\n\* `Africa\/Bamako` - Africa\/Bamako\n\* `Africa\/Bangui` - Africa\/Bangui\n\* `Africa\/Banjul` - Africa\/Banjul\n\* `Africa\/Bissau` - Africa\/Bissau\n\* `Africa\/Blantyre` - Africa\/Blantyre\n\* `Africa\/Brazzaville` - Africa\/Brazzaville\n\* `Africa\/Bujumbura` - Africa\/Bujumbura\n\* `Africa\/Cairo` - Africa\/Cairo\n\* `Africa\/Casablanca` - Africa\/Casablanca\n\* `Africa\/Ceuta` - Africa\/Ceuta\n\* `Africa\/Conakry` - Africa\/Conakry\n\* `Africa\/Dakar` - Africa\/Dakar\n\* `Africa\/Dar_es_Salaam` - Africa\/Dar_es_Salaam\n\* `Africa\/Djibouti` - Africa\/Djibouti\n\* `Africa\/Douala` - Africa\/Douala\n\* `Africa\/El_Aaiun` - Africa\/El_Aaiun\n\* `Africa\/Freetown` - Africa\/Freetown\n\* `Africa\/Gaborone` - Africa\/Gaborone\n\* `Africa\/Harare` - Africa\/Harare\n\* `Africa\/Johannesburg` - Africa\/Johannesburg\n\* `Africa\/Juba` - Africa\/Juba\n\* `Africa\/Kampala` - Africa\/Kampala\n\* `Africa\/Khartoum` - Africa\/Khartoum\n\* `Africa\/Kigali` - Africa\/Kigali\n\* `Africa\/Kinshasa` - Africa\/Kinshasa\n\* `Africa\/Lagos` - Africa\/Lagos\n\* `Africa\/Libreville` - Africa\/Libreville\n\* `Africa\/Lome` - Africa\/Lome\n\* `Africa\/Luanda` - Africa\/Luanda\n\* `Africa\/Lubumbashi` - Africa\/Lubumbashi\n\* `Africa\/Lusaka` - Africa\/Lusaka\n\* `Africa\/Malabo` - Africa\/Malabo\n\* `Africa\/Maputo` - Africa\/Maputo\n\* `Africa\/Maseru` - Africa\/Maseru\n\* `Africa\/Mbabane` - Africa\/Mbabane\n\* `Africa\/Mogadishu` - Africa\/Mogadishu\n\* `Africa\/Monrovia` - Africa\/Monrovia\n\* `Africa\/Nairobi` - Africa\/Nairobi\n\* `Africa\/Ndjamena` - Africa\/Ndjamena\n\* `Africa\/Niamey` - Africa\/Niamey\n\* `Africa\/Nouakchott` - Africa\/Nouakchott\n\* `Africa\/Ouagadougou` - Africa\/Ouagadougou\n\* `Africa\/Porto-Novo` - Africa\/Porto-Novo\n\* `Africa\/Sao_Tome` - Africa\/Sao_Tome\n\* `Africa\/Timbuktu` - Africa\/Timbuktu\n\* `Africa\/Tripoli` - Africa\/Tripoli\n\* `Africa\/Tunis` - Africa\/Tunis\n\* `Africa\/Windhoek` - Africa\/Windhoek\n\* `America\/Adak` - America\/Adak\n\* `America\/Anchorage` - America\/Anchorage\n\* `America\/Anguilla` - America\/Anguilla\n\* `America\/Antigua` - America\/Antigua\n\* `America\/Araguaina` - America\/Araguaina\n\* `America\/Argentina\/Buenos_Aires` - America\/Argentina\/Buenos_Aires\n\* `America\/Argentina\/Catamarca` - America\/Argentina\/Catamarca\n\* `America\/Argentina\/ComodRivadavia` - America\/Argentina\/ComodRivadavia\n\* `America\/Argentina\/Cordoba` - America\/Argentina\/Cordoba\n\* `America\/Argentina\/Jujuy` - America\/Argentina\/Jujuy\n\* `America\/Argentina\/La_Rioja` - America\/Argentina\/La_Rioja\n\* `America\/Argentina\/Mendoza` - America\/Argentina\/Mendoza\n\* `America\/Argentina\/Rio_Gallegos` - America\/Argentina\/Rio_Gallegos\n\* `America\/Argentina\/Salta` - America\/Argentina\/Salta\n\* `America\/Argentina\/San_Juan` - America\/Argentina\/San_Juan\n\* `America\/Argentina\/San_Luis` - America\/Argentina\/San_Luis\n\* `America\/Argentina\/Tucuman` - America\/Argentina\/Tucuman\n\* `America\/Argentina\/Ushuaia` - America\/Argentina\/Ushuaia\n\* `America\/Aruba` - America\/Aruba\n\* `America\/Asuncion` - America\/Asuncion\n\* `America\/Atikokan` - America\/Atikokan\n\* `America\/Atka` - America\/Atka\n\* `America\/Bahia` - America\/Bahia\n\* `America\/Bahia_Banderas` - America\/Bahia_Banderas\n\* `America\/Barbados` - America\/Barbados\n\* `America\/Belem` - America\/Belem\n\* `America\/Belize` - America\/Belize\n\* `America\/Blanc-Sablon` - America\/Blanc-Sablon\n\* `America\/Boa_Vista` - America\/Boa_Vista\n\* `America\/Bogota` - America\/Bogota\n\* `America\/Boise` - America\/Boise\n\* `America\/Buenos_Aires` - America\/Buenos_Aires\n\* `America\/Cambridge_Bay` - America\/Cambridge_Bay\n\* `America\/Campo_Grande` - America\/Campo_Grande\n\* `America\/Cancun` - America\/Cancun\n\* `America\/Caracas` - America\/Caracas\n\* `America\/Catamarca` - America\/Catamarca\n\* `America\/Cayenne` - America\/Cayenne\n\* `America\/Cayman` - America\/Cayman\n\* `America\/Chicago` - America\/Chicago\n\* `America\/Chihuahua` - America\/Chihuahua\n\* `America\/Ciudad_Juarez` - America\/Ciudad_Juarez\n\* `America\/Coral_Harbour` - America\/Coral_Harbour\n\* `America\/Cordoba` - America\/Cordoba\n\* `America\/Costa_Rica` - America\/Costa_Rica\n\* `America\/Creston` - America\/Creston\n\* `America\/Cuiaba` - America\/Cuiaba\n\* `America\/Curacao` - America\/Curacao\n\* `America\/Danmarkshavn` - America\/Danmarkshavn\n\* `America\/Dawson` - America\/Dawson\n\* `America\/Dawson_Creek` - America\/Dawson_Creek\n\* `America\/Denver` - America\/Denver\n\* `America\/Detroit` - America\/Detroit\n\* `America\/Dominica` - America\/Dominica\n\* `America\/Edmonton` - America\/Edmonton\n\* `America\/Eirunepe` - America\/Eirunepe\n\* `America\/El_Salvador` - America\/El_Salvador\n\* `America\/Ensenada` - America\/Ensenada\n\* `America\/Fort_Nelson` - America\/Fort_Nelson\n\* `America\/Fort_Wayne` - America\/Fort_Wayne\n\* `America\/Fortaleza` - America\/Fortaleza\n\* `America\/Glace_Bay` - America\/Glace_Bay\n\* `America\/Godthab` - America\/Godthab\n\* `America\/Goose_Bay` - America\/Goose_Bay\n\* `America\/Grand_Turk` - America\/Grand_Turk\n\* `America\/Grenada` - America\/Grenada\n\* `America\/Guadeloupe` - America\/Guadeloupe\n\* `America\/Guatemala` - America\/Guatemala\n\* `America\/Guayaquil` - America\/Guayaquil\n\* `America\/Guyana` - America\/Guyana\n\* `America\/Halifax` - America\/Halifax\n\* `America\/Havana` - America\/Havana\n\* `America\/Hermosillo` - America\/Hermosillo\n\* `America\/Indiana\/Indianapolis` - America\/Indiana\/Indianapolis\n\* `America\/Indiana\/Knox` - America\/Indiana\/Knox\n\* `America\/Indiana\/Marengo` - America\/Indiana\/Marengo\n\* `America\/Indiana\/Petersburg` - America\/Indiana\/Petersburg\n\* `America\/Indiana\/Tell_City` - America\/Indiana\/Tell_City\n\* `America\/Indiana\/Vevay` - America\/Indiana\/Vevay\n\* `America\/Indiana\/Vincennes` - America\/Indiana\/Vincennes\n\* `America\/Indiana\/Winamac` - America\/Indiana\/Winamac\n\* `America\/Indianapolis` - America\/Indianapolis\n\* `America\/Inuvik` - America\/Inuvik\n\* `America\/Iqaluit` - America\/Iqaluit\n\* `America\/Jamaica` - America\/Jamaica\n\* `America\/Jujuy` - America\/Jujuy\n\* `America\/Juneau` - America\/Juneau\n\* `America\/Kentucky\/Louisville` - America\/Kentucky\/Louisville\n\* `America\/Kentucky\/Monticello` - America\/Kentucky\/Monticello\n\* `America\/Knox_IN` - America\/Knox_IN\n\* `America\/Kralendijk` - America\/Kralendijk\n\* `America\/La_Paz` - America\/La_Paz\n\* `America\/Lima` - America\/Lima\n\* `America\/Los_Angeles` - America\/Los_Angeles\n\* `America\/Louisville` - America\/Louisville\n\* `America\/Lower_Princes` - America\/Lower_Princes\n\* `America\/Maceio` - America\/Maceio\n\* `America\/Managua` - America\/Managua\n\* `America\/Manaus` - America\/Manaus\n\* `America\/Marigot` - America\/Marigot\n\* `America\/Martinique` - America\/Martinique\n\* `America\/Matamoros` - America\/Matamoros\n\* `America\/Mazatlan` - America\/Mazatlan\n\* `America\/Mendoza` - America\/Mendoza\n\* `America\/Menominee` - America\/Menominee\n\* `America\/Merida` - America\/Merida\n\* `America\/Metlakatla` - America\/Metlakatla\n\* `America\/Mexico_City` - America\/Mexico_City\n\* `America\/Miquelon` - America\/Miquelon\n\* `America\/Moncton` - America\/Moncton\n\* `America\/Monterrey` - America\/Monterrey\n\* `America\/Montevideo` - America\/Montevideo\n\* `America\/Montreal` - America\/Montreal\n\* `America\/Montserrat` - America\/Montserrat\n\* `America\/Nassau` - America\/Nassau\n\* `America\/New_York` - America\/New_York\n\* `America\/Nipigon` - America\/Nipigon\n\* `America\/Nome` - America\/Nome\n\* `America\/Noronha` - America\/Noronha\n\* `America\/North_Dakota\/Beulah` - America\/North_Dakota\/Beulah\n\* `America\/North_Dakota\/Center` - America\/North_Dakota\/Center\n\* `America\/North_Dakota\/New_Salem` - America\/North_Dakota\/New_Salem\n\* `America\/Nuuk` - America\/Nuuk\n\* `America\/Ojinaga` - America\/Ojinaga\n\* `America\/Panama` - America\/Panama\n\* `America\/Pangnirtung` - America\/Pangnirtung\n\* `America\/Paramaribo` - America\/Paramaribo\n\* `America\/Phoenix` - America\/Phoenix\n\* `America\/Port-au-Prince` - America\/Port-au-Prince\n\* `America\/Port_of_Spain` - America\/Port_of_Spain\n\* `America\/Porto_Acre` - America\/Porto_Acre\n\* `America\/Porto_Velho` - America\/Porto_Velho\n\* `America\/Puerto_Rico` - America\/Puerto_Rico\n\* `America\/Punta_Arenas` - America\/Punta_Arenas\n\* `America\/Rainy_River` - America\/Rainy_River\n\* `America\/Rankin_Inlet` - America\/Rankin_Inlet\n\* `America\/Recife` - America\/Recife\n\* `America\/Regina` - America\/Regina\n\* `America\/Resolute` - America\/Resolute\n\* `America\/Rio_Branco` - America\/Rio_Branco\n\* `America\/Rosario` - America\/Rosario\n\* `America\/Santa_Isabel` - America\/Santa_Isabel\n\* `America\/Santarem` - America\/Santarem\n\* `America\/Santiago` - America\/Santiago\n\* `America\/Santo_Domingo` - America\/Santo_Domingo\n\* `America\/Sao_Paulo` - America\/Sao_Paulo\n\* `America\/Scoresbysund` - America\/Scoresbysund\n\* `America\/Shiprock` - America\/Shiprock\n\* `America\/Sitka` - America\/Sitka\n\* `America\/St_Barthelemy` - America\/St_Barthelemy\n\* `America\/St_Johns` - America\/St_Johns\n\* `America\/St_Kitts` - America\/St_Kitts\n\* `America\/St_Lucia` - America\/St_Lucia\n\* `America\/St_Thomas` - America\/St_Thomas\n\* `America\/St_Vincent` - America\/St_Vincent\n\* `America\/Swift_Current` - America\/Swift_Current\n\* `America\/Tegucigalpa` - America\/Tegucigalpa\n\* `America\/Thule` - America\/Thule\n\* `America\/Thunder_Bay` - America\/Thunder_Bay\n\* `America\/Tijuana` - America\/Tijuana\n\* `America\/Toronto` - America\/Toronto\n\* `America\/Tortola` - America\/Tortola\n\* `America\/Vancouver` - America\/Vancouver\n\* `America\/Virgin` - America\/Virgin\n\* `America\/Whitehorse` - America\/Whitehorse\n\* `America\/Winnipeg` - America\/Winnipeg\n\* `America\/Yakutat` - America\/Yakutat\n\* `America\/Yellowknife` - America\/Yellowknife\n\* `Antarctica\/Casey` - Antarctica\/Casey\n\* `Antarctica\/Davis` - Antarctica\/Davis\n\* `Antarctica\/DumontDUrville` - Antarctica\/DumontDUrville\n\* `Antarctica\/Macquarie` - Antarctica\/Macquarie\n\* `Antarctica\/Mawson` - Antarctica\/Mawson\n\* `Antarctica\/McMurdo` - Antarctica\/McMurdo\n\* `Antarctica\/Palmer` - Antarctica\/Palmer\n\* `Antarctica\/Rothera` - Antarctica\/Rothera\n\* `Antarctica\/South_Pole` - Antarctica\/South_Pole\n\* `Antarctica\/Syowa` - Antarctica\/Syowa\n\* `Antarctica\/Troll` - Antarctica\/Troll\n\* `Antarctica\/Vostok` - Antarctica\/Vostok\n\* `Arctic\/Longyearbyen` - Arctic\/Longyearbyen\n\* `Asia\/Aden` - Asia\/Aden\n\* `Asia\/Almaty` - Asia\/Almaty\n\* `Asia\/Amman` - Asia\/Amman\n\* `Asia\/Anadyr` - Asia\/Anadyr\n\* `Asia\/Aqtau` - Asia\/Aqtau\n\* `Asia\/Aqtobe` - Asia\/Aqtobe\n\* `Asia\/Ashgabat` - Asia\/Ashgabat\n\* `Asia\/Ashkhabad` - Asia\/Ashkhabad\n\* `Asia\/Atyrau` - Asia\/Atyrau\n\* `Asia\/Baghdad` - Asia\/Baghdad\n\* `Asia\/Bahrain` - Asia\/Bahrain\n\* `Asia\/Baku` - Asia\/Baku\n\* `Asia\/Bangkok` - Asia\/Bangkok\n\* `Asia\/Barnaul` - Asia\/Barnaul\n\* `Asia\/Beirut` - Asia\/Beirut\n\* `Asia\/Bishkek` - Asia\/Bishkek\n\* `Asia\/Brunei` - Asia\/Brunei\n\* `Asia\/Calcutta` - Asia\/Calcutta\n\* `Asia\/Chita` - Asia\/Chita\n\* `Asia\/Choibalsan` - Asia\/Choibalsan\n\* `Asia\/Chongqing` - Asia\/Chongqing\n\* `Asia\/Chungking` - Asia\/Chungking\n\* `Asia\/Colombo` - Asia\/Colombo\n\* `Asia\/Dacca` - Asia\/Dacca\n\* `Asia\/Damascus` - Asia\/Damascus\n\* `Asia\/Dhaka` - Asia\/Dhaka\n\* `Asia\/Dili` - Asia\/Dili\n\* `Asia\/Dubai` - Asia\/Dubai\n\* `Asia\/Dushanbe` - Asia\/Dushanbe\n\* `Asia\/Famagusta` - Asia\/Famagusta\n\* `Asia\/Gaza` - Asia\/Gaza\n\* `Asia\/Harbin` - Asia\/Harbin\n\* `Asia\/Hebron` - Asia\/Hebron\n\* `Asia\/Ho_Chi_Minh` - Asia\/Ho_Chi_Minh\n\* `Asia\/Hong_Kong` - Asia\/Hong_Kong\n\* `Asia\/Hovd` - Asia\/Hovd\n\* `Asia\/Irkutsk` - Asia\/Irkutsk\n\* `Asia\/Istanbul` - Asia\/Istanbul\n\* `Asia\/Jakarta` - Asia\/Jakarta\n\* `Asia\/Jayapura` - Asia\/Jayapura\n\* `Asia\/Jerusalem` - Asia\/Jerusalem\n\* `Asia\/Kabul` - Asia\/Kabul\n\* `Asia\/Kamchatka` - Asia\/Kamchatka\n\* `Asia\/Karachi` - Asia\/Karachi\n\* `Asia\/Kashgar` - Asia\/Kashgar\n\* `Asia\/Kathmandu` - Asia\/Kathmandu\n\* `Asia\/Katmandu` - Asia\/Katmandu\n\* `Asia\/Khandyga` - Asia\/Khandyga\n\* `Asia\/Kolkata` - Asia\/Kolkata\n\* `Asia\/Krasnoyarsk` - Asia\/Krasnoyarsk\n\* `Asia\/Kuala_Lumpur` - Asia\/Kuala_Lumpur\n\* `Asia\/Kuching` - Asia\/Kuching\n\* `Asia\/Kuwait` - Asia\/Kuwait\n\* `Asia\/Macao` - Asia\/Macao\n\* `Asia\/Macau` - Asia\/Macau\n\* `Asia\/Magadan` - Asia\/Magadan\n\* `Asia\/Makassar` - Asia\/Makassar\n\* `Asia\/Manila` - Asia\/Manila\n\* `Asia\/Muscat` - Asia\/Muscat\n\* `Asia\/Nicosia` - Asia\/Nicosia\n\* `Asia\/Novokuznetsk` - Asia\/Novokuznetsk\n\* `Asia\/Novosibirsk` - Asia\/Novosibirsk\n\* `Asia\/Omsk` - Asia\/Omsk\n\* `Asia\/Oral` - Asia\/Oral\n\* `Asia\/Phnom_Penh` - Asia\/Phnom_Penh\n\* `Asia\/Pontianak` - Asia\/Pontianak\n\* `Asia\/Pyongyang` - Asia\/Pyongyang\n\* `Asia\/Qatar` - Asia\/Qatar\n\* `Asia\/Qostanay` - Asia\/Qostanay\n\* `Asia\/Qyzylorda` - Asia\/Qyzylorda\n\* `Asia\/Rangoon` - Asia\/Rangoon\n\* `Asia\/Riyadh` - Asia\/Riyadh\n\* `Asia\/Saigon` - Asia\/Saigon\n\* `Asia\/Sakhalin` - Asia\/Sakhalin\n\* `Asia\/Samarkand` - Asia\/Samarkand\n\* `Asia\/Seoul` - Asia\/Seoul\n\* `Asia\/Shanghai` - Asia\/Shanghai\n\* `Asia\/Singapore` - Asia\/Singapore\n\* `Asia\/Srednekolymsk` - Asia\/Srednekolymsk\n\* `Asia\/Taipei` - Asia\/Taipei\n\* `Asia\/Tashkent` - Asia\/Tashkent\n\* `Asia\/Tbilisi` - Asia\/Tbilisi\n\* `Asia\/Tehran` - Asia\/Tehran\n\* `Asia\/Tel_Aviv` - Asia\/Tel_Aviv\n\* `Asia\/Thimbu` - Asia\/Thimbu\n\* `Asia\/Thimphu` - Asia\/Thimphu\n\* `Asia\/Tokyo` - Asia\/Tokyo\n\* `Asia\/Tomsk` - Asia\/Tomsk\n\* `Asia\/Ujung_Pandang` - Asia\/Ujung_Pandang\n\* `Asia\/Ulaanbaatar` - Asia\/Ulaanbaatar\n\* `Asia\/Ulan_Bator` - Asia\/Ulan_Bator\n\* `Asia\/Urumqi` - Asia\/Urumqi\n\* `Asia\/Ust-Nera` - Asia\/Ust-Nera\n\* `Asia\/Vientiane` - Asia\/Vientiane\n\* `Asia\/Vladivostok` - Asia\/Vladivostok\n\* `Asia\/Yakutsk` - Asia\/Yakutsk\n\* `Asia\/Yangon` - Asia\/Yangon\n\* `Asia\/Yekaterinburg` - Asia\/Yekaterinburg\n\* `Asia\/Yerevan` - Asia\/Yerevan\n\* `Atlantic\/Azores` - Atlantic\/Azores\n\* `Atlantic\/Bermuda` - Atlantic\/Bermuda\n\* `Atlantic\/Canary` - Atlantic\/Canary\n\* `Atlantic\/Cape_Verde` - Atlantic\/Cape_Verde\n\* `Atlantic\/Faeroe` - Atlantic\/Faeroe\n\* `Atlantic\/Faroe` - Atlantic\/Faroe\n\* `Atlantic\/Jan_Mayen` - Atlantic\/Jan_Mayen\n\* `Atlantic\/Madeira` - Atlantic\/Madeira\n\* `Atlantic\/Reykjavik` - Atlantic\/Reykjavik\n\* `Atlantic\/South_Georgia` - Atlantic\/South_Georgia\n\* `Atlantic\/St_Helena` - Atlantic\/St_Helena\n\* `Atlantic\/Stanley` - Atlantic\/Stanley\n\* `Australia\/ACT` - Australia\/ACT\n\* `Australia\/Adelaide` - Australia\/Adelaide\n\* `Australia\/Brisbane` - Australia\/Brisbane\n\* `Australia\/Broken_Hill` - Australia\/Broken_Hill\n\* `Australia\/Canberra` - Australia\/Canberra\n\* `Australia\/Currie` - Australia\/Currie\n\* `Australia\/Darwin` - Australia\/Darwin\n\* `Australia\/Eucla` - Australia\/Eucla\n\* `Australia\/Hobart` - Australia\/Hobart\n\* `Australia\/LHI` - Australia\/LHI\n\* `Australia\/Lindeman` - Australia\/Lindeman\n\* `Australia\/Lord_Howe` - Australia\/Lord_Howe\n\* `Australia\/Melbourne` - Australia\/Melbourne\n\* `Australia\/NSW` - Australia\/NSW\n\* `Australia\/North` - Australia\/North\n\* `Australia\/Perth` - Australia\/Perth\n\* `Australia\/Queensland` - Australia\/Queensland\n\* `Australia\/South` - Australia\/South\n\* `Australia\/Sydney` - Australia\/Sydney\n\* `Australia\/Tasmania` - Australia\/Tasmania\n\* `Australia\/Victoria` - Australia\/Victoria\n\* `Australia\/West` - Australia\/West\n\* `Australia\/Yancowinna` - Australia\/Yancowinna\n\* `Brazil\/Acre` - Brazil\/Acre\n\* `Brazil\/DeNoronha` - Brazil\/DeNoronha\n\* `Brazil\/East` - Brazil\/East\n\* `Brazil\/West` - Brazil\/West\n\* `CET` - CET\n\* `CST6CDT` - CST6CDT\n\* `Canada\/Atlantic` - Canada\/Atlantic\n\* `Canada\/Central` - Canada\/Central\n\* `Canada\/Eastern` - Canada\/Eastern\n\* `Canada\/Mountain` - Canada\/Mountain\n\* `Canada\/Newfoundland` - Canada\/Newfoundland\n\* `Canada\/Pacific` - Canada\/Pacific\n\* `Canada\/Saskatchewan` - Canada\/Saskatchewan\n\* `Canada\/Yukon` - Canada\/Yukon\n\* `Chile\/Continental` - Chile\/Continental\n\* `Chile\/EasterIsland` - Chile\/EasterIsland\n\* `Cuba` - Cuba\n\* `EET` - EET\n\* `EST` - EST\n\* `EST5EDT` - EST5EDT\n\* `Egypt` - Egypt\n\* `Eire` - Eire\n\* `Etc\/GMT` - Etc\/GMT\n\* `Etc\/GMT+0` - Etc\/GMT+0\n\* `Etc\/GMT+1` - Etc\/GMT+1\n\* `Etc\/GMT+10` - Etc\/GMT+10\n\* `Etc\/GMT+11` - Etc\/GMT+11\n\* `Etc\/GMT+12` - Etc\/GMT+12\n\* `Etc\/GMT+2` - Etc\/GMT+2\n\* `Etc\/GMT+3` - Etc\/GMT+3\n\* `Etc\/GMT+4` - Etc\/GMT+4\n\* `Etc\/GMT+5` - Etc\/GMT+5\n\* `Etc\/GMT+6` - Etc\/GMT+6\n\* `Etc\/GMT+7` - Etc\/GMT+7\n\* `Etc\/GMT+8` - Etc\/GMT+8\n\* `Etc\/GMT+9` - Etc\/GMT+9\n\* `Etc\/GMT-0` - Etc\/GMT-0\n\* `Etc\/GMT-1` - Etc\/GMT-1\n\* `Etc\/GMT-10` - Etc\/GMT-10\n\* `Etc\/GMT-11` - Etc\/GMT-11\n\* `Etc\/GMT-12` - Etc\/GMT-12\n\* `Etc\/GMT-13` - Etc\/GMT-13\n\* `Etc\/GMT-14` - Etc\/GMT-14\n\* `Etc\/GMT-2` - Etc\/GMT-2\n\* `Etc\/GMT-3` - Etc\/GMT-3\n\* `Etc\/GMT-4` - Etc\/GMT-4\n\* `Etc\/GMT-5` - Etc\/GMT-5\n\* `Etc\/GMT-6` - Etc\/GMT-6\n\* `Etc\/GMT-7` - Etc\/GMT-7\n\* `Etc\/GMT-8` - Etc\/GMT-8\n\* `Etc\/GMT-9` - Etc\/GMT-9\n\* `Etc\/GMT0` - Etc\/GMT0\n\* `Etc\/Greenwich` - Etc\/Greenwich\n\* `Etc\/UCT` - Etc\/UCT\n\* `Etc\/UTC` - Etc\/UTC\n\* `Etc\/Universal` - Etc\/Universal\n\* `Etc\/Zulu` - Etc\/Zulu\n\* `Europe\/Amsterdam` - Europe\/Amsterdam\n\* `Europe\/Andorra` - Europe\/Andorra\n\* `Europe\/Astrakhan` - Europe\/Astrakhan\n\* `Europe\/Athens` - Europe\/Athens\n\* `Europe\/Belfast` - Europe\/Belfast\n\* `Europe\/Belgrade` - Europe\/Belgrade\n\* `Europe\/Berlin` - Europe\/Berlin\n\* `Europe\/Bratislava` - Europe\/Bratislava\n\* `Europe\/Brussels` - Europe\/Brussels\n\* `Europe\/Bucharest` - Europe\/Bucharest\n\* `Europe\/Budapest` - Europe\/Budapest\n\* `Europe\/Busingen` - Europe\/Busingen\n\* `Europe\/Chisinau` - Europe\/Chisinau\n\* `Europe\/Copenhagen` - Europe\/Copenhagen\n\* `Europe\/Dublin` - Europe\/Dublin\n\* `Europe\/Gibraltar` - Europe\/Gibraltar\n\* `Europe\/Guernsey` - Europe\/Guernsey\n\* `Europe\/Helsinki` - Europe\/Helsinki\n\* `Europe\/Isle_of_Man` - Europe\/Isle_of_Man\n\* `Europe\/Istanbul` - Europe\/Istanbul\n\* `Europe\/Jersey` - Europe\/Jersey\n\* `Europe\/Kaliningrad` - Europe\/Kaliningrad\n\* `Europe\/Kiev` - Europe\/Kiev\n\* `Europe\/Kirov` - Europe\/Kirov\n\* `Europe\/Kyiv` - Europe\/Kyiv\n\* `Europe\/Lisbon` - Europe\/Lisbon\n\* `Europe\/Ljubljana` - Europe\/Ljubljana\n\* `Europe\/London` - Europe\/London\n\* `Europe\/Luxembourg` - Europe\/Luxembourg\n\* `Europe\/Madrid` - Europe\/Madrid\n\* `Europe\/Malta` - Europe\/Malta\n\* `Europe\/Mariehamn` - Europe\/Mariehamn\n\* `Europe\/Minsk` - Europe\/Minsk\n\* `Europe\/Monaco` - Europe\/Monaco\n\* `Europe\/Moscow` - Europe\/Moscow\n\* `Europe\/Nicosia` - Europe\/Nicosia\n\* `Europe\/Oslo` - Europe\/Oslo\n\* `Europe\/Paris` - Europe\/Paris\n\* `Europe\/Podgorica` - Europe\/Podgorica\n\* `Europe\/Prague` - Europe\/Prague\n\* `Europe\/Riga` - Europe\/Riga\n\* `Europe\/Rome` - Europe\/Rome\n\* `Europe\/Samara` - Europe\/Samara\n\* `Europe\/San_Marino` - Europe\/San_Marino\n\* `Europe\/Sarajevo` - Europe\/Sarajevo\n\* `Europe\/Saratov` - Europe\/Saratov\n\* `Europe\/Simferopol` - Europe\/Simferopol\n\* `Europe\/Skopje` - Europe\/Skopje\n\* `Europe\/Sofia` - Europe\/Sofia\n\* `Europe\/Stockholm` - Europe\/Stockholm\n\* `Europe\/Tallinn` - Europe\/Tallinn\n\* `Europe\/Tirane` - Europe\/Tirane\n\* `Europe\/Tiraspol` - Europe\/Tiraspol\n\* `Europe\/Ulyanovsk` - Europe\/Ulyanovsk\n\* `Europe\/Uzhgorod` - Europe\/Uzhgorod\n\* `Europe\/Vaduz` - Europe\/Vaduz\n\* `Europe\/Vatican` - Europe\/Vatican\n\* `Europe\/Vienna` - Europe\/Vienna\n\* `Europe\/Vilnius` - Europe\/Vilnius\n\* `Europe\/Volgograd` - Europe\/Volgograd\n\* `Europe\/Warsaw` - Europe\/Warsaw\n\* `Europe\/Zagreb` - Europe\/Zagreb\n\* `Europe\/Zaporozhye` - Europe\/Zaporozhye\n\* `Europe\/Zurich` - Europe\/Zurich\n\* `GB` - GB\n\* `GB-Eire` - GB-Eire\n\* `GMT` - GMT\n\* `GMT+0` - GMT+0\n\* `GMT-0` - GMT-0\n\* `GMT0` - GMT0\n\* `Greenwich` - Greenwich\n\* `HST` - HST\n\* `Hongkong` - Hongkong\n\* `Iceland` - Iceland\n\* `Indian\/Antananarivo` - Indian\/Antananarivo\n\* `Indian\/Chagos` - Indian\/Chagos\n\* `Indian\/Christmas` - Indian\/Christmas\n\* `Indian\/Cocos` - Indian\/Cocos\n\* `Indian\/Comoro` - Indian\/Comoro\n\* `Indian\/Kerguelen` - Indian\/Kerguelen\n\* `Indian\/Mahe` - Indian\/Mahe\n\* `Indian\/Maldives` - Indian\/Maldives\n\* `Indian\/Mauritius` - Indian\/Mauritius\n\* `Indian\/Mayotte` - Indian\/Mayotte\n\* `Indian\/Reunion` - Indian\/Reunion\n\* `Iran` - Iran\n\* `Israel` - Israel\n\* `Jamaica` - Jamaica\n\* `Japan` - Japan\n\* `Kwajalein` - Kwajalein\n\* `Libya` - Libya\n\* `MET` - MET\n\* `MST` - MST\n\* `MST7MDT` - MST7MDT\n\* `Mexico\/BajaNorte` - Mexico\/BajaNorte\n\* `Mexico\/BajaSur` - Mexico\/BajaSur\n\* `Mexico\/General` - Mexico\/General\n\* `NZ` - NZ\n\* `NZ-CHAT` - NZ-CHAT\n\* `Navajo` - Navajo\n\* `PRC` - PRC\n\* `PST8PDT` - PST8PDT\n\* `Pacific\/Apia` - Pacific\/Apia\n\* `Pacific\/Auckland` - Pacific\/Auckland\n\* `Pacific\/Bougainville` - Pacific\/Bougainville\n\* `Pacific\/Chatham` - Pacific\/Chatham\n\* `Pacific\/Chuuk` - Pacific\/Chuuk\n\* `Pacific\/Easter` - Pacific\/Easter\n\* `Pacific\/Efate` - Pacific\/Efate\n\* `Pacific\/Enderbury` - Pacific\/Enderbury\n\* `Pacific\/Fakaofo` - Pacific\/Fakaofo\n\* `Pacific\/Fiji` - Pacific\/Fiji\n\* `Pacific\/Funafuti` - Pacific\/Funafuti\n\* `Pacific\/Galapagos` - Pacific\/Galapagos\n\* `Pacific\/Gambier` - Pacific\/Gambier\n\* `Pacific\/Guadalcanal` - Pacific\/Guadalcanal\n\* `Pacific\/Guam` - Pacific\/Guam\n\* `Pacific\/Honolulu` - Pacific\/Honolulu\n\* `Pacific\/Johnston` - Pacific\/Johnston\n\* `Pacific\/Kanton` - Pacific\/Kanton\n\* `Pacific\/Kiritimati` - Pacific\/Kiritimati\n\* `Pacific\/Kosrae` - Pacific\/Kosrae\n\* `Pacific\/Kwajalein` - Pacific\/Kwajalein\n\* `Pacific\/Majuro` - Pacific\/Majuro\n\* `Pacific\/Marquesas` - Pacific\/Marquesas\n\* `Pacific\/Midway` - Pacific\/Midway\n\* `Pacific\/Nauru` - Pacific\/Nauru\n\* `Pacific\/Niue` - Pacific\/Niue\n\* `Pacific\/Norfolk` - Pacific\/Norfolk\n\* `Pacific\/Noumea` - Pacific\/Noumea\n\* `Pacific\/Pago_Pago` - Pacific\/Pago_Pago\n\* `Pacific\/Palau` - Pacific\/Palau\n\* `Pacific\/Pitcairn` - Pacific\/Pitcairn\n\* `Pacific\/Pohnpei` - Pacific\/Pohnpei\n\* `Pacific\/Ponape` - Pacific\/Ponape\n\* `Pacific\/Port_Moresby` - Pacific\/Port_Moresby\n\* `Pacific\/Rarotonga` - Pacific\/Rarotonga\n\* `Pacific\/Saipan` - Pacific\/Saipan\n\* `Pacific\/Samoa` - Pacific\/Samoa\n\* `Pacific\/Tahiti` - Pacific\/Tahiti\n\* `Pacific\/Tarawa` - Pacific\/Tarawa\n\* `Pacific\/Tongatapu` - Pacific\/Tongatapu\n\* `Pacific\/Truk` - Pacific\/Truk\n\* `Pacific\/Wake` - Pacific\/Wake\n\* `Pacific\/Wallis` - Pacific\/Wallis\n\* `Pacific\/Yap` - Pacific\/Yap\n\* `Poland` - Poland\n\* `Portugal` - Portugal\n\* `ROC` - ROC\n\* `ROK` - ROK\n\* `Singapore` - Singapore\n\* `Turkey` - Turkey\n\* `UCT` - UCT\n\* `US\/Alaska` - US\/Alaska\n\* `US\/Aleutian` - US\/Aleutian\n\* `US\/Arizona` - US\/Arizona\n\* `US\/Central` - US\/Central\n\* `US\/East-Indiana` - US\/East-Indiana\n\* `US\/Eastern` - US\/Eastern\n\* `US\/Hawaii` - US\/Hawaii\n\* `US\/Indiana-Starke` - US\/Indiana-Starke\n\* `US\/Michigan` - US\/Michigan\n\* `US\/Mountain` - US\/Mountain\n\* `US\/Pacific` - US\/Pacific\n\* `US\/Samoa` - US\/Samoa\n\* `UTC` - UTC\n\* `Universal` - Universal\n\* `W-SU` - W-SU\n\* `WET` - WET\n\* `Zulu` - Zulu'- ),- offset_day: zod- .number()- .min(batchExportsRunTestStepCreateBodyOffsetDayMin)- .max(batchExportsRunTestStepCreateBodyOffsetDayMax)- .nullish()- .describe(- "Day-of-week offset for weekly intervals (0=Sunday, 6=Saturday). Only valid when interval is 'week'."- ),- offset_hour: zod- .number()- .min(batchExportsRunTestStepCreateBodyOffsetHourMin)- .max(batchExportsRunTestStepCreateBodyOffsetHourMax)- .nullish()- .describe(- "Hour-of-day offset (0-23) for daily and weekly intervals. Only valid when interval is 'day' or 'week'."- ),- })- .describe('Serializer for a BatchExport model.')--/**- * Unpause a BatchExport.- */-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault = true-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault = true-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneTwoPrefixDefault = ``-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneTwoFileFormatDefault = `JSONLines`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneThreeTableIdDefault = `events`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault = false-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneFourSchemaDefault = `public`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneFourTableNameDefault = `events`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault = false-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneFiveFileFormatDefault = `JSONLines`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneSixFileFormatDefault = `JSONLines`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault = false-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneSevenTableNameDefault = `events`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneEightSchemaDefault = `public`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneEightTableNameDefault = `events`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneEightPortDefault = 5439-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault = `varchar`-export const batchExportsUnpauseCreateBodyDestinationOneConfigOneEightModeDefault = `INSERT`-export const batchExportsUnpauseCreateBodyOffsetDayMin = 0-export const batchExportsUnpauseCreateBodyOffsetDayMax = 6+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault = true+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault = true+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoPrefixDefault = ``+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoFileFormatDefault = `JSONLines`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeTableIdDefault = `events`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault = false+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourSchemaDefault = `public`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourTableNameDefault = `events`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault = false+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneFiveFileFormatDefault = `JSONLines`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixFileFormatDefault = `JSONLines`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault = false+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneSevenTableNameDefault = `events`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightSchemaDefault = `public`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightTableNameDefault = `events`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPortDefault = 5439+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault = `varchar`+export const batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightModeDefault = `INSERT`+export const batchExportsRunTestStepCreateBodyOffsetDayMin = 0+export const batchExportsRunTestStepCreateBodyOffsetDayMax = 6-export const batchExportsUnpauseCreateBodyOffsetHourMin = 0-export const batchExportsUnpauseCreateBodyOffsetHourMax = 23+export const batchExportsRunTestStepCreateBodyOffsetHourMin = 0+export const batchExportsRunTestStepCreateBodyOffsetHourMax = 23-export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod+export const BatchExportsRunTestStepCreateBody = /* @__PURE__ */ zod.object({name: zod.string().describe('A human-readable name for this BatchExport.'),model: zod@@ -2663,13 +1745,13 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zoduse_variant_type: zod.boolean().default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault).describe('Whether to use the Databricks VARIANT type for JSON-like columns.'),use_automatic_schema_evolution: zod.boolean().default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault).describe('Whether to let Databricks evolve the destination table schema automatically.'@@ -2684,7 +1766,7 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zodcontainer_name: zod.string().describe('Azure Blob Storage container name.'),prefix: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneTwoPrefixDefault)+ .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoPrefixDefault).describe('Object key prefix applied to every exported file.'),compression: zod.union([@@ -2702,7 +1784,9 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zodfile_format: zod.enum(['Parquet', 'JSONLines']).describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneTwoFileFormatDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneTwoFileFormatDefault+ ).describe('File format used for exported objects.\n\n\* `JSONLines` - JSONLines\n\* `Parquet` - Parquet'),@@ -2728,12 +1812,14 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zoddataset_id: zod.string().describe('BigQuery dataset ID to write to.'),table_id: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneThreeTableIdDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeTableIdDefault+ ).describe('BigQuery table ID inside the dataset.'),use_json_type: zod.boolean().default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneThreeUseJsonTypeDefault).describe("Whether to export 'properties', 'set', and 'set_once' fields as the BigQuery JSON type rather than STRING. Cannot be changed after the export is created."@@ -2748,16 +1834,18 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zoddatabase: zod.string().describe('PostgreSQL database name to connect to.'),schema: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneFourSchemaDefault)+ .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourSchemaDefault).describe('PostgreSQL schema name containing the destination table.'),table_name: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneFourTableNameDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourTableNameDefault+ ).describe('PostgreSQL table name to write exported rows into.'),has_self_signed_cert: zod.boolean().default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneFourHasSelfSignedCertDefault).describe('Legacy SSL option for direct credential configuration. Ignored when using a PostgreSQL integration.'@@ -2788,7 +1876,9 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zodfile_format: zod.enum(['Parquet', 'JSONLines']).describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneFiveFileFormatDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneFiveFileFormatDefault+ ).describe('File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'),@@ -2840,7 +1930,9 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zodfile_format: zod.enum(['Parquet', 'JSONLines']).describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneSixFileFormatDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixFileFormatDefault+ ).describe('File format used for exported objects.\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'),@@ -2859,7 +1951,7 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zoduse_virtual_style_addressing: zod.boolean().default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneSixUseVirtualStyleAddressingDefault).describe('Use virtual-hosted-style addressing rather than path-style.'),type: zod.enum(['S3Compatible']),@@ -2876,7 +1968,9 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod.describe('Schema inside the database containing the destination table.'),table_name: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneSevenTableNameDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneSevenTableNameDefault+ ).describe('Destination table name.'),role: zod.string()@@ -2898,21 +1992,23 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod),schema: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneEightSchemaDefault)+ .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightSchemaDefault).describe('Redshift schema name containing the destination table.'),table_name: zod.string()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneEightTableNameDefault)+ .default(+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightTableNameDefault+ ).describe('Redshift table name to write exported rows into.'),port: zod.number()- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneEightPortDefault)+ .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPortDefault).describe('Port the Redshift server listens on.'),properties_data_type: zod.enum(['varchar', 'super']).describe('\* `varchar` - varchar\n\* `super` - super').default(- batchExportsUnpauseCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault+ batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightPropertiesDataTypeDefault).describe('Data type used for JSON-like columns such as event properties.\n\n\* `varchar` - varchar\n\* `super` - super'@@ -2920,7 +2016,7 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zodmode: zod.enum(['INSERT', 'COPY']).describe('\* `INSERT` - INSERT\n\* `COPY` - COPY')- .default(batchExportsUnpauseCreateBodyDestinationOneConfigOneEightModeDefault)+ .default(batchExportsRunTestStepCreateBodyDestinationOneConfigOneEightModeDefault).describe('How rows reach Redshift: batched INSERT statements, or COPY from files staged in S3.\n\n\* `INSERT` - INSERT\n\* `COPY` - COPY'),@@ -3021,16 +2117,16 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod),offset_day: zod.number()- .min(batchExportsUnpauseCreateBodyOffsetDayMin)- .max(batchExportsUnpauseCreateBodyOffsetDayMax)+ .min(batchExportsRunTestStepCreateBodyOffsetDayMin)+ .max(batchExportsRunTestStepCreateBodyOffsetDayMax).nullish().describe("Day-of-week offset for weekly intervals (0=Sunday, 6=Saturday). Only valid when interval is 'week'."),offset_hour: zod.number()- .min(batchExportsUnpauseCreateBodyOffsetHourMin)- .max(batchExportsUnpauseCreateBodyOffsetHourMax)+ .min(batchExportsRunTestStepCreateBodyOffsetHourMin)+ .max(batchExportsRunTestStepCreateBodyOffsetHourMax).nullish().describe("Hour-of-day offset (0-23) for daily and weekly intervals. Only valid when interval is 'day' or 'week'."@@ -3038,6 +2134,18 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod}).describe('Serializer for a BatchExport model.')+/**+ * Unpause a BatchExport.+ */+export const batchExportsUnpauseCreateBodyBackfillDefault = false++export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod.object({+ backfill: zod+ .boolean()+ .default(batchExportsUnpauseCreateBodyBackfillDefault)+ .describe('Whether to backfill the runs that the batch export missed while it was paused.'),+})+export const batchExportsRunTestStepNewCreateBodyDestinationOneConfigOneOneUseVariantTypeDefault = trueexport const batchExportsRunTestStepNewCreateBodyDestinationOneConfigOneOneUseAutomaticSchemaEvolutionDefault = trueexport const batchExportsRunTestStepNewCreateBodyDestinationOneConfigOneTwoPrefixDefault = ``@@ -3700,71 +2808,6 @@ export const FileDownloadBatchExportsCreateBody = /* @__PURE__ */ zod.union([.describe('Typed configuration for the hogql model.'),])-/**- * Cancel an ongoing file-download batch export.- */-export const fileDownloadBatchExportsCancelCreateBodyFileFormatDefault = `Parquet`-export const fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbDefault = 1024-export const fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbMin = 0--export const FileDownloadBatchExportsCancelCreateBody = /* @__PURE__ */ zod- .object({- file: zod- .object({- format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(fileDownloadBatchExportsCancelCreateBodyFileFormatDefault)- .describe('File format\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Compress the file with a supported compression format\n\n\* `zstd` - zstd\n\* `gzip` - gzip\n\* `brotli` - brotli\n\* `lz4` - lz4\n\* `snappy` - snappy'- ),- max_size_mb: zod- .number()- .min(fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbMin)- .nullish()- .default(fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbDefault)- .describe(- 'Split the download into files of about this size in MiB. A file can go a little over. Set it to null or 0 to write a single file of any size.'- ),- })- .describe('Typed configuration for a FileDownload batch-export destination.'),- model: zod- .enum(['events', 'persons', 'sessions', 'hogql'])- .describe('\* `events` - events\n\* `persons` - persons\n\* `sessions` - sessions\n\* `hogql` - hogql'),- include: zod.array(zod.string()).optional(),- exclude: zod.array(zod.string()).optional(),- hogql_query: zod- .string()- .optional()- .describe(- 'HogQL SELECT query whose results are exported. This model is in closed beta and is enabled per team; when it is not enabled, the request fails with a permission error that names HogQL batch exports. Contact PostHog support to request access. The query may reference the {data_interval_start} and {data_interval_end} placeholders. Provide a value for each placeholder the query references; missing referenced bounds are rejected, not inferred. When both bounds are supplied, they must span at most seven days. Neither supplied bound may be in the future. Without placeholders, the query runs unchanged, even if bounds are supplied. Every column in the SELECT clause must be a field or have an alias. It is recommended to limit the query with a WHERE clause, for example bounding timestamp on the events table, both to avoid exporting more rows than expected and because user queries run under stricter resource limits than the other models.'- ),- data_interval_start: zod.iso- .datetime({ offset: true })- .optional()- .describe(- 'Start of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_start}. A supplied start must not be in the future. When both bounds are supplied, the interval must span at most seven days.'- ),- data_interval_end: zod.iso- .datetime({ offset: true })- .optional()- .describe(- 'End of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_end}. A supplied end must not be in the future or precede a supplied start. Bounds replace HogQL placeholders; they do not add filters to the query.'- ),- })- .describe('Request shape for a FileDownload batch export on demand.')-/*** Count the rows a HogQL batch export would produce if started now.*/diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 78e772c9b7e4..d55ce499fb99 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -15170,6 +15170,11 @@ export namespace Schemas {offset_hour?: number | null;}+ export interface BatchExportUnpauseRequest {+ /** Whether to backfill the runs that the batch export missed while it was paused. */+ backfill?: boolean;+ }+/*** @nullable*/@@ -47555,38 +47560,6 @@ export namespace Schemas {readonly created_by: UserBasic;}- /**- * * `events` - events- * * `persons` - persons- * * `sessions` - sessions- * * `hogql` - hogql- */- export type FileDownloadBatchExportOnDemandModelEnum = typeof FileDownloadBatchExportOnDemandModelEnum[keyof typeof FileDownloadBatchExportOnDemandModelEnum];--- export const FileDownloadBatchExportOnDemandModelEnum = {- Events: 'events',- Persons: 'persons',- Sessions: 'sessions',- Hogql: 'hogql',- } as const;-- /**- * Request shape for a FileDownload batch export on demand.- */- export interface FileDownloadBatchExportOnDemand {- file: FileDownloadDestinationFileConfig;- model: FileDownloadBatchExportOnDemandModelEnum;- include?: string[];- exclude?: string[];- /** HogQL SELECT query whose results are exported. This model is in closed beta and is enabled per team; when it is not enabled, the request fails with a permission error that names HogQL batch exports. Contact PostHog support to request access. The query may reference the {data_interval_start} and {data_interval_end} placeholders. Provide a value for each placeholder the query references; missing referenced bounds are rejected, not inferred. When both bounds are supplied, they must span at most seven days. Neither supplied bound may be in the future. Without placeholders, the query runs unchanged, even if bounds are supplied. Every column in the SELECT clause must be a field or have an alias. It is recommended to limit the query with a WHERE clause, for example bounding timestamp on the events table, both to avoid exporting more rows than expected and because user queries run under stricter resource limits than the other models. */- hogql_query?: string;- /** Start of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_start}. A supplied start must not be in the future. When both bounds are supplied, the interval must span at most seven days. */- data_interval_start?: string;- /** End of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_end}. A supplied end must not be in the future or precede a supplied start. Bounds replace HogQL placeholders; they do not add filters to the query. */- data_interval_end?: string;- }-/*** * `hogql` - hogql*/diff --git a/services/mcp/src/generated/batch_exports/api.ts b/services/mcp/src/generated/batch_exports/api.tsindex 9351c4554e05..3fdbd34e0216 100644--- a/services/mcp/src/generated/batch_exports/api.ts+++ b/services/mcp/src/generated/batch_exports/api.ts@@ -1195,68 +1195,6 @@ export const FileDownloadBatchExportsCancelCreateParams = () => zod.object({),})-export const fileDownloadBatchExportsCancelCreateBodyFileFormatDefault = `Parquet`-export const fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbDefault = 1024-export const fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbMin = 0--export const FileDownloadBatchExportsCancelCreateBody = () => zod- .object({- file: zod- .object({- format: zod- .enum(['Parquet', 'JSONLines'])- .describe('\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines')- .default(fileDownloadBatchExportsCancelCreateBodyFileFormatDefault)- .describe('File format\n\n\* `Parquet` - Parquet\n\* `JSONLines` - JSONLines'),- compression: zod- .union([- zod- .enum(['brotli', 'gzip', 'lz4', 'snappy', 'zstd'])- .describe(- '\* `brotli` - brotli\n\* `gzip` - gzip\n\* `lz4` - lz4\n\* `snappy` - snappy\n\* `zstd` - zstd'- ),- zod.null(),- ])- .optional()- .describe(- 'Compress the file with a supported compression format\n\n\* `zstd` - zstd\n\* `gzip` - gzip\n\* `brotli` - brotli\n\* `lz4` - lz4\n\* `snappy` - snappy'- ),- max_size_mb: zod- .number()- .min(fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbMin)- .nullish()- .default(fileDownloadBatchExportsCancelCreateBodyFileMaxSizeMbDefault)- .describe(- 'Split the download into files of about this size in MiB. A file can go a little over. Set it to null or 0 to write a single file of any size.'- ),- })- .describe('Typed configuration for a FileDownload batch-export destination.'),- model: zod- .enum(['events', 'persons', 'sessions', 'hogql'])- .describe('\* `events` - events\n\* `persons` - persons\n\* `sessions` - sessions\n\* `hogql` - hogql'),- include: zod.array(zod.string()).optional(),- exclude: zod.array(zod.string()).optional(),- hogql_query: zod- .string()- .optional()- .describe(- 'HogQL SELECT query whose results are exported. This model is in closed beta and is enabled per team; when it is not enabled, the request fails with a permission error that names HogQL batch exports. Contact PostHog support to request access. The query may reference the {data_interval_start} and {data_interval_end} placeholders. Provide a value for each placeholder the query references; missing referenced bounds are rejected, not inferred. When both bounds are supplied, they must span at most seven days. Neither supplied bound may be in the future. Without placeholders, the query runs unchanged, even if bounds are supplied. Every column in the SELECT clause must be a field or have an alias. It is recommended to limit the query with a WHERE clause, for example bounding timestamp on the events table, both to avoid exporting more rows than expected and because user queries run under stricter resource limits than the other models.'- ),- data_interval_start: zod.iso- .datetime({ offset: true })- .optional()- .describe(- 'Start of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_start}. A supplied start must not be in the future. When both bounds are supplied, the interval must span at most seven days.'- ),- data_interval_end: zod.iso- .datetime({ offset: true })- .optional()- .describe(- 'End of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_end}. A supplied end must not be in the future or precede a supplied start. Bounds replace HogQL placeholders; they do not add filters to the query.'- ),- })- .describe('Request shape for a FileDownload batch export on demand.')-/*** Count the rows a HogQL batch export would produce if started now.*/diff --git a/services/mcp/src/tools/generated/batch_exports.ts b/services/mcp/src/tools/generated/batch_exports.tsindex f62f7dd0c80d..c724301559f7 100644--- a/services/mcp/src/tools/generated/batch_exports.ts+++ b/services/mcp/src/tools/generated/batch_exports.ts@@ -180,11 +180,8 @@ const batchExportsList = (): ToolBase<})const FileDownloadBatchExportsCancelCreateSchema = () => {- const FileDownloadBatchExportsCancelCreateBody = orvalSchemas.FileDownloadBatchExportsCancelCreateBody()const FileDownloadBatchExportsCancelCreateParams = orvalSchemas.FileDownloadBatchExportsCancelCreateParams()- return FileDownloadBatchExportsCancelCreateParams.omit({ project_id: true }).extend(- FileDownloadBatchExportsCancelCreateBody.shape- )+ return FileDownloadBatchExportsCancelCreateParams.omit({ project_id: true })}const fileDownloadBatchExportsCancelCreate = (): ToolBase<@@ -198,32 +195,9 @@ const fileDownloadBatchExportsCancelCreate = (): ToolBase<params: z.infer<ReturnType<typeof FileDownloadBatchExportsCancelCreateSchema>>) => {const projectId = await context.stateManager.getProjectId()- const body: Record<string, unknown> = {}- if (params.file !== undefined) {- body['file'] = params.file- }- if (params.model !== undefined) {- body['model'] = params.model- }- if (params.include !== undefined) {- body['include'] = params.include- }- if (params.exclude !== undefined) {- body['exclude'] = params.exclude- }- if (params.hogql_query !== undefined) {- body['hogql_query'] = params.hogql_query- }- if (params.data_interval_start !== undefined) {- body['data_interval_start'] = params.data_interval_start- }- if (params.data_interval_end !== undefined) {- body['data_interval_end'] = params.data_interval_end- }const result = await context.api.request<unknown>({method: 'POST',path: `/api/projects/${encodeURIComponent(String(projectId))}/file_download_batch_exports/${encodeURIComponent(String(params.id))}/cancel/`,- body,})return result},diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.jsonindex 754ec15a8d32..291cf6441f8f 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.json@@ -1,82 +1,11 @@{"$schema": "https://json-schema.org/draft/2020-12/schema","properties": {- "data_interval_end": {- "description": "End of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_end}. A supplied end must not be in the future or precede a supplied start. Bounds replace HogQL placeholders; they do not add filters to the query.",- "format": "date-time",- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",- "type": "string"- },- "data_interval_start": {- "description": "Start of the export interval. Required for the events, persons, and sessions models. For HogQL, required only when the query references {data_interval_start}. A supplied start must not be in the future. When both bounds are supplied, the interval must span at most seven days.",- "format": "date-time",- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",- "type": "string"- },- "exclude": {- "items": {- "type": "string"- },- "type": "array"- },- "file": {- "description": "Typed configuration for a FileDownload batch-export destination.",- "properties": {- "compression": {- "anyOf": [- {- "description": "* `brotli` - brotli\n* `gzip` - gzip\n* `lz4` - lz4\n* `snappy` - snappy\n* `zstd` - zstd",- "enum": ["brotli", "gzip", "lz4", "snappy", "zstd"],- "type": "string"- },- {- "type": "null"- }- ],- "description": "Compress the file with a supported compression format\n\n* `zstd` - zstd\n* `gzip` - gzip\n* `brotli` - brotli\n* `lz4` - lz4\n* `snappy` - snappy"- },- "format": {- "default": "Parquet",- "description": "File format\n\n* `Parquet` - Parquet\n* `JSONLines` - JSONLines",- "enum": ["Parquet", "JSONLines"],- "type": "string"- },- "max_size_mb": {- "anyOf": [- {- "minimum": 0,- "type": "number"- },- {- "type": "null"- }- ],- "default": 1024,- "description": "Split the download into files of about this size in MiB. A file can go a little over. Set it to null or 0 to write a single file of any size."- }- },- "type": "object"- },- "hogql_query": {- "description": "HogQL SELECT query whose results are exported. This model is in closed beta and is enabled per team; when it is not enabled, the request fails with a permission error that names HogQL batch exports. Contact PostHog support to request access. The query may reference the {data_interval_start} and {data_interval_end} placeholders. Provide a value for each placeholder the query references; missing referenced bounds are rejected, not inferred. When both bounds are supplied, they must span at most seven days. Neither supplied bound may be in the future. Without placeholders, the query runs unchanged, even if bounds are supplied. Every column in the SELECT clause must be a field or have an alias. It is recommended to limit the query with a WHERE clause, for example bounding timestamp on the events table, both to avoid exporting more rows than expected and because user queries run under stricter resource limits than the other models.",- "type": "string"- },"id": {"description": "A UUID string identifying this batch export run.","type": "string"- },- "include": {- "items": {- "type": "string"- },- "type": "array"- },- "model": {- "description": "* `events` - events\n* `persons` - persons\n* `sessions` - sessions\n* `hogql` - hogql",- "enum": ["events", "persons", "sessions", "hogql"],- "type": "string"}},- "required": ["id", "file", "model"],+ "required": ["id"],"type": "object"}