Skip to content

: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.

feat(projects): bring /api/projects to parity with /api/environments (#61229)

Yasen2ac201979605
diff --git a/ee/api/test/test_project.py b/ee/api/test/test_project.py
index 77be4462634c..2e0b0d9435a3 100644
--- a/ee/api/test/test_project.py
+++ b/ee/api/test/test_project.py
@@ -163,6 +163,7 @@ class TestProjectEnterpriseAPI(team_enterprise_api_test_factory()): # type: ign
"id": self.team.id,
"uuid": str(self.team.uuid),
"organization": str(self.organization.id),
+ "project_id": self.team.project.id,
"api_token": self.team.api_token,
"name": self.team.name,
"completed_snippet_onboarding": False,
diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.ts
index 6952156caf43..8336d343c3da 100644
--- a/frontend/src/generated/core/api.schemas.ts
+++ b/frontend/src/generated/core/api.schemas.ts
@@ -314,6 +314,8 @@ export interface ProjectBackwardCompatBasicApi {
readonly id: number
readonly uuid: string
readonly organization: string
+ /** ID of the project this environment belongs to. */
+ readonly project_id: number
readonly api_token: string
readonly name: string
readonly completed_snippet_onboarding: boolean
@@ -345,6 +347,8 @@ export type ProjectBackwardCompatApiProductIntentsItem = {
updated_at?: string
}
+export type ProjectBackwardCompatApiManagedViewsets = { [key: string]: boolean }
+
export type EffectiveMembershipLevelEnumApi =
(typeof EffectiveMembershipLevelEnumApi)[keyof typeof EffectiveMembershipLevelEnumApi]
@@ -532,6 +536,392 @@ export const AvailableSetupTaskIdsEnumApi = {
UpdateFeatureStage: 'update_feature_stage',
} as const
+/**
+ * * `AED` - AED
+ * * `AFN` - AFN
+ * * `ALL` - ALL
+ * * `AMD` - AMD
+ * * `ANG` - ANG
+ * * `AOA` - AOA
+ * * `ARS` - ARS
+ * * `AUD` - AUD
+ * * `AWG` - AWG
+ * * `AZN` - AZN
+ * * `BAM` - BAM
+ * * `BBD` - BBD
+ * * `BDT` - BDT
+ * * `BGN` - BGN
+ * * `BHD` - BHD
+ * * `BIF` - BIF
+ * * `BMD` - BMD
+ * * `BND` - BND
+ * * `BOB` - BOB
+ * * `BRL` - BRL
+ * * `BSD` - BSD
+ * * `BTC` - BTC
+ * * `BTN` - BTN
+ * * `BWP` - BWP
+ * * `BYN` - BYN
+ * * `BZD` - BZD
+ * * `CAD` - CAD
+ * * `CDF` - CDF
+ * * `CHF` - CHF
+ * * `CLP` - CLP
+ * * `CNY` - CNY
+ * * `COP` - COP
+ * * `CRC` - CRC
+ * * `CVE` - CVE
+ * * `CZK` - CZK
+ * * `DJF` - DJF
+ * * `DKK` - DKK
+ * * `DOP` - DOP
+ * * `DZD` - DZD
+ * * `EGP` - EGP
+ * * `ERN` - ERN
+ * * `ETB` - ETB
+ * * `EUR` - EUR
+ * * `FJD` - FJD
+ * * `GBP` - GBP
+ * * `GEL` - GEL
+ * * `GHS` - GHS
+ * * `GIP` - GIP
+ * * `GMD` - GMD
+ * * `GNF` - GNF
+ * * `GTQ` - GTQ
+ * * `GYD` - GYD
+ * * `HKD` - HKD
+ * * `HNL` - HNL
+ * * `HRK` - HRK
+ * * `HTG` - HTG
+ * * `HUF` - HUF
+ * * `IDR` - IDR
+ * * `ILS` - ILS
+ * * `INR` - INR
+ * * `IQD` - IQD
+ * * `IRR` - IRR
+ * * `ISK` - ISK
+ * * `JMD` - JMD
+ * * `JOD` - JOD
+ * * `JPY` - JPY
+ * * `KES` - KES
+ * * `KGS` - KGS
+ * * `KHR` - KHR
+ * * `KMF` - KMF
+ * * `KRW` - KRW
+ * * `KWD` - KWD
+ * * `KYD` - KYD
+ * * `KZT` - KZT
+ * * `LAK` - LAK
+ * * `LBP` - LBP
+ * * `LKR` - LKR
+ * * `LRD` - LRD
+ * * `LTL` - LTL
+ * * `LVL` - LVL
+ * * `LSL` - LSL
+ * * `LYD` - LYD
+ * * `MAD` - MAD
+ * * `MDL` - MDL
+ * * `MGA` - MGA
+ * * `MKD` - MKD
+ * * `MMK` - MMK
+ * * `MNT` - MNT
+ * * `MOP` - MOP
+ * * `MRU` - MRU
+ * * `MTL` - MTL
+ * * `MUR` - MUR
+ * * `MVR` - MVR
+ * * `MWK` - MWK
+ * * `MXN` - MXN
+ * * `MYR` - MYR
+ * * `MZN` - MZN
+ * * `NAD` - NAD
+ * * `NGN` - NGN
+ * * `NIO` - NIO
+ * * `NOK` - NOK
+ * * `NPR` - NPR
+ * * `NZD` - NZD
+ * * `OMR` - OMR
+ * * `PAB` - PAB
+ * * `PEN` - PEN
+ * * `PGK` - PGK
+ * * `PHP` - PHP
+ * * `PKR` - PKR
+ * * `PLN` - PLN
+ * * `PYG` - PYG
+ * * `QAR` - QAR
+ * * `RON` - RON
+ * * `RSD` - RSD
+ * * `RUB` - RUB
+ * * `RWF` - RWF
+ * * `SAR` - SAR
+ * * `SBD` - SBD
+ * * `SCR` - SCR
+ * * `SDG` - SDG
+ * * `SEK` - SEK
+ * * `SGD` - SGD
+ * * `SRD` - SRD
+ * * `SSP` - SSP
+ * * `STN` - STN
+ * * `SYP` - SYP
+ * * `SZL` - SZL
+ * * `THB` - THB
+ * * `TJS` - TJS
+ * * `TMT` - TMT
+ * * `TND` - TND
+ * * `TOP` - TOP
+ * * `TRY` - TRY
+ * * `TTD` - TTD
+ * * `TWD` - TWD
+ * * `TZS` - TZS
+ * * `UAH` - UAH
+ * * `UGX` - UGX
+ * * `USD` - USD
+ * * `UYU` - UYU
+ * * `UZS` - UZS
+ * * `VES` - VES
+ * * `VND` - VND
+ * * `VUV` - VUV
+ * * `WST` - WST
+ * * `XAF` - XAF
+ * * `XCD` - XCD
+ * * `XOF` - XOF
+ * * `XPF` - XPF
+ * * `YER` - YER
+ * * `ZAR` - ZAR
+ * * `ZMW` - ZMW
+ */
+export type BaseCurrencyEnumApi = (typeof BaseCurrencyEnumApi)[keyof typeof BaseCurrencyEnumApi]
+
+export const BaseCurrencyEnumApi = {
+ Aed: 'AED',
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i {
+ base_currency?: BaseCurrencyEnumApi
+ events?: unknown
+ goals?: unknown
+ filter_test_accounts?: boolean
+}
+
+/**
+ * * `first_touch` - First Touch
+ * * `last_touch` - Last Touch
+ * * `linear` - Linear
+ * * `time_decay` - Time Decay
+ * * `position_based` - Position Based
+ */
+export type AttributionModeEnumApi = (typeof AttributionModeEnumApi)[keyof typeof AttributionModeEnumApi]
+
+export const AttributionModeEnumApi = {
+ FirstTouch: 'first_touch',
+ LastTouch: 'last_touch',
+ Linear: 'linear',
+ TimeDecay: 'time_decay',
+ PositionBased: 'position_based',
+} as const
+
+export interface TeamMarketingAnalyticsConfigApi {
+ sources_map?: unknown
+ conversion_goals?: unknown
+ /**
+ * @minimum 1
+ * @maximum 90
+ */
+ attribution_window_days?: number
+ attribution_mode?: AttributionModeEnumApi
+ campaign_name_mappings?: unknown
+ custom_source_mappings?: unknown
+ campaign_field_preferences?: unknown
+}
+
+export interface TeamCustomerAnalyticsConfigApi {
+ /** Event used as the activity signal (DAU/WAU/MAU). */
+ activity_event?: unknown
+ /** Event used to count signup pageviews on dashboards. */
+ signup_pageview_event?: unknown
+ /** Event used to count signups on dashboards. */
+ signup_event?: unknown
+ /** Event used to count subscriptions on dashboards. */
+ subscription_event?: unknown
+ /** Event used to count payments on dashboards. */
+ payment_event?: unknown
+ /**
+ * Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.
+ * @nullable
+ */
+ account_group_type_index?: number | null
+}
+
+export interface TeamWorkflowsConfigApi {
+ /** When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_*) alongside the existing workflow metrics. */
+ capture_workflows_engagement_events?: boolean
+}
+
+/**
+ * * `0` - Disabled
+ * * `1` - Stateless
+ * * `2` - Stateful
+ */
+export type CookielessServerHashModeEnumApi =
+ (typeof CookielessServerHashModeEnumApi)[keyof typeof CookielessServerHashModeEnumApi]
+
+export const CookielessServerHashModeEnumApi = {
+ Number0: 0,
+ Number1: 1,
+ Number2: 2,
+} as const
+
/**
* Mixin for serializers to add user access control fields
*/
@@ -1320,6 +1710,50 @@ export interface ProjectBackwardCompatApi {
* @nullable
*/
readonly is_pending_deletion: boolean | null
+ /** ID of the project this environment belongs to. */
+ readonly project_id: number
+ /**
+ * The effective access level the user has for this object
+ * @nullable
+ */
+ readonly user_access_level: string | null
+ readonly managed_viewsets: ProjectBackwardCompatApiManagedViewsets
+ revenue_analytics_config?: TeamRevenueAnalyticsConfigApi
+ marketing_analytics_config?: TeamMarketingAnalyticsConfigApi
+ customer_analytics_config?: TeamCustomerAnalyticsConfigApi
+ workflows_config?: TeamWorkflowsConfigApi
+ base_currency?: BaseCurrencyEnumApi
+ /**
+ * Enables capturing clicks that had no effect (rage-click detection).
+ * @nullable
+ */
+ capture_dead_clicks?: boolean | null
+ cookieless_server_hash_mode?: CookielessServerHashModeEnumApi | null
+ /** @nullable */
+ human_friendly_comparison_periods?: boolean | null
+ /** @nullable */
+ feature_flag_confirmation_enabled?: boolean | null
+ /** @nullable */
+ feature_flag_confirmation_message?: string | null
+ /**
+ * Whether to automatically apply default evaluation contexts to new feature flags
+ * @nullable
+ */
+ default_evaluation_contexts_enabled?: boolean | null
+ /**
+ * Whether to require at least one evaluation context tag when creating new feature flags
+ * @nullable
+ */
+ require_evaluation_contexts?: boolean | null
+ /**
+ * @minimum -2147483648
+ * @maximum 2147483647
+ * @nullable
+ */
+ default_data_theme?: number | null
+ onboarding_tasks?: unknown
+ /** @nullable */
+ web_analytics_pre_aggregated_tables_enabled?: boolean | null
}
export type PatchedProjectBackwardCompatApiGroupTypesItem = { [key: string]: unknown }
@@ -1334,6 +1768,8 @@ export type PatchedProjectBackwardCompatApiProductIntentsItem = {
updated_at?: string
}
+export type PatchedProjectBackwardCompatApiManagedViewsets = { [key: string]: boolean }
+
/**
* Mixin for serializers to add user access control fields
*/
@@ -2122,6 +2558,50 @@ export interface PatchedProjectBackwardCompatApi {
* @nullable
*/
readonly is_pending_deletion?: boolean | null
+ /** ID of the project this environment belongs to. */
+ readonly project_id?: number
+ /**
+ * The effective access level the user has for this object
+ * @nullable
+ */
+ readonly user_access_level?: string | null
+ readonly managed_viewsets?: PatchedProjectBackwardCompatApiManagedViewsets
+ revenue_analytics_config?: TeamRevenueAnalyticsConfigApi
+ marketing_analytics_config?: TeamMarketingAnalyticsConfigApi
+ customer_analytics_config?: TeamCustomerAnalyticsConfigApi
+ workflows_config?: TeamWorkflowsConfigApi
+ base_currency?: BaseCurrencyEnumApi
+ /**
+ * Enables capturing clicks that had no effect (rage-click detection).
+ * @nullable
+ */
+ capture_dead_clicks?: boolean | null
+ cookieless_server_hash_mode?: CookielessServerHashModeEnumApi | null
+ /** @nullable */
+ human_friendly_comparison_periods?: boolean | null
+ /** @nullable */
+ feature_flag_confirmation_enabled?: boolean | null
+ /** @nullable */
+ feature_flag_confirmation_message?: string | null
+ /**
+ * Whether to automatically apply default evaluation contexts to new feature flags
+ * @nullable
+ */
+ default_evaluation_contexts_enabled?: boolean | null
+ /**
+ * Whether to require at least one evaluation context tag when creating new feature flags
+ * @nullable
+ */
+ require_evaluation_contexts?: boolean | null
+ /**
+ * @minimum -2147483648
+ * @maximum 2147483647
+ * @nullable
+ */
+ default_data_theme?: number | null
+ onboarding_tasks?: unknown
+ /** @nullable */
+ web_analytics_pre_aggregated_tables_enabled?: boolean | null
}
export interface PromotedProductIntentApi {
diff --git a/frontend/src/generated/core/api.ts b/frontend/src/generated/core/api.ts
index 67592e5b435e..ab93134fc15d 100644
--- a/frontend/src/generated/core/api.ts
+++ b/frontend/src/generated/core/api.ts
@@ -723,6 +723,114 @@ export const organizationsProjectsCompleteProductOnboardingPartialUpdate = async
)
}
+export const getOrganizationsProjectsDefaultEvaluationContextsRetrieveUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/default_evaluation_contexts/`
+}
+
+/**
+ * Manage default evaluation contexts for a project.
+ */
+export const organizationsProjectsDefaultEvaluationContextsRetrieve = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsDefaultEvaluationContextsRetrieveUrl(organizationId, id),
+ {
+ ...options,
+ method: 'GET',
+ }
+ )
+}
+
+export const getOrganizationsProjectsDefaultEvaluationContextsCreateUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/default_evaluation_contexts/`
+}
+
+/**
+ * Manage default evaluation contexts for a project.
+ */
+export const organizationsProjectsDefaultEvaluationContextsCreate = async (
+ organizationId: string,
+ id: number,
+ projectBackwardCompatApi?: NonReadonly<ProjectBackwardCompatApi>,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsDefaultEvaluationContextsCreateUrl(organizationId, id),
+ {
+ ...options,
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(projectBackwardCompatApi),
+ }
+ )
+}
+
+export const getOrganizationsProjectsDefaultEvaluationContextsDestroyUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/default_evaluation_contexts/`
+}
+
+/**
+ * Manage default evaluation contexts for a project.
+ */
+export const organizationsProjectsDefaultEvaluationContextsDestroy = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<void> => {
+ return apiMutator<void>(getOrganizationsProjectsDefaultEvaluationContextsDestroyUrl(organizationId, id), {
+ ...options,
+ method: 'DELETE',
+ })
+}
+
+export const getOrganizationsProjectsDefaultReleaseConditionsRetrieveUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/default_release_conditions/`
+}
+
+/**
+ * Manage default release conditions for new feature flags in this project.
+ */
+export const organizationsProjectsDefaultReleaseConditionsRetrieve = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsDefaultReleaseConditionsRetrieveUrl(organizationId, id),
+ {
+ ...options,
+ method: 'GET',
+ }
+ )
+}
+
+export const getOrganizationsProjectsDefaultReleaseConditionsUpdateUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/default_release_conditions/`
+}
+
+/**
+ * Manage default release conditions for new feature flags in this project.
+ */
+export const organizationsProjectsDefaultReleaseConditionsUpdate = async (
+ organizationId: string,
+ id: number,
+ projectBackwardCompatApi?: NonReadonly<ProjectBackwardCompatApi>,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsDefaultReleaseConditionsUpdateUrl(organizationId, id),
+ {
+ ...options,
+ method: 'PUT',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(projectBackwardCompatApi),
+ }
+ )
+}
+
export const getOrganizationsProjectsDeleteSecretTokenBackupPartialUpdateUrl = (organizationId: string, id: number) => {
return `/api/organizations/${organizationId}/projects/${id}/delete_secret_token_backup/`
}
@@ -747,6 +855,72 @@ export const organizationsProjectsDeleteSecretTokenBackupPartialUpdate = async (
)
}
+export const getOrganizationsProjectsEventIngestionRestrictionsRetrieveUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/event_ingestion_restrictions/`
+}
+
+/**
+ * Projects for the current organization.
+ */
+export const organizationsProjectsEventIngestionRestrictionsRetrieve = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsEventIngestionRestrictionsRetrieveUrl(organizationId, id),
+ {
+ ...options,
+ method: 'GET',
+ }
+ )
+}
+
+export const getOrganizationsProjectsExperimentsConfigRetrieveUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/experiments_config/`
+}
+
+/**
+ * Manage experiment configuration for this project.
+ */
+export const organizationsProjectsExperimentsConfigRetrieve = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsExperimentsConfigRetrieveUrl(organizationId, id),
+ {
+ ...options,
+ method: 'GET',
+ }
+ )
+}
+
+export const getOrganizationsProjectsExperimentsConfigPartialUpdateUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/experiments_config/`
+}
+
+/**
+ * Manage experiment configuration for this project.
+ */
+export const organizationsProjectsExperimentsConfigPartialUpdate = async (
+ organizationId: string,
+ id: number,
+ patchedProjectBackwardCompatApi?: NonReadonly<PatchedProjectBackwardCompatApi>,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(
+ getOrganizationsProjectsExperimentsConfigPartialUpdateUrl(organizationId, id),
+ {
+ ...options,
+ method: 'PATCH',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(patchedProjectBackwardCompatApi),
+ }
+ )
+}
+
export const getOrganizationsProjectsGenerateConversationsPublicTokenCreateUrl = (
organizationId: string,
id: number
@@ -910,6 +1084,27 @@ export const organizationsProjectsRotateSecretTokenPartialUpdate = async (
)
}
+export const getOrganizationsProjectsSettingsAsOfRetrieveUrl = (organizationId: string, id: number) => {
+ return `/api/organizations/${organizationId}/projects/${id}/settings_as_of/`
+}
+
+/**
+ * Return the project settings as of the provided timestamp.
+ * Query params:
+ * - at: ISO8601 datetime (required)
+ * - scope: optional, one or multiple keys to filter the returned settings
+ */
+export const organizationsProjectsSettingsAsOfRetrieve = async (
+ organizationId: string,
+ id: number,
+ options?: RequestInit
+): Promise<ProjectBackwardCompatApi> => {
+ return apiMutator<ProjectBackwardCompatApi>(getOrganizationsProjectsSettingsAsOfRetrieveUrl(organizationId, id), {
+ ...options,
+ method: 'GET',
+ })
+}
+
export const getDashboardsSharingListUrl = (projectId: string, dashboardId: number) => {
return `/api/projects/${projectId}/dashboards/${dashboardId}/sharing/`
}
diff --git a/frontend/src/generated/core/api.zod.ts b/frontend/src/generated/core/api.zod.ts
index e24166f018ef..f390f16d4762 100644
--- a/frontend/src/generated/core/api.zod.ts
+++ b/frontend/src/generated/core/api.zod.ts
@@ -311,6 +311,11 @@ export const organizationsProjectsCreateBodySessionRecordingTriggerMatchTypeConf
export const organizationsProjectsCreateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsCreateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsCreateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsCreateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -477,6 +482,412 @@ export const OrganizationsProjectsCreateBody = /* @__PURE__ */ zod
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 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AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(organizationsProjectsCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax)
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+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+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsCreateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsCreateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -501,6 +912,11 @@ export const organizationsProjectsUpdateBodySessionRecordingTriggerMatchTypeConf
export const organizationsProjectsUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -667,6 +1083,412 @@ export const OrganizationsProjectsUpdateBody = /* @__PURE__ */ zod
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA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+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(organizationsProjectsUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax)
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -691,6 +1513,11 @@ export const organizationsProjectsPartialUpdateBodySessionRecordingTriggerMatchT
export const organizationsProjectsPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -859,6 +1686,412 @@ export const OrganizationsProjectsPartialUpdateBody = /* @__PURE__ */ zod
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+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BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(organizationsProjectsPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax)
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 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` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -883,6 +2116,11 @@ export const organizationsProjectsAddProductIntentPartialUpdateBodySessionRecord
export const organizationsProjectsAddProductIntentPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsAddProductIntentPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsAddProductIntentPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsAddProductIntentPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsAddProductIntentPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -1063,6 +2301,414 @@ export const OrganizationsProjectsAddProductIntentPartialUpdateBody = /* @__PURE
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+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D',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsAddProductIntentPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics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 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsAddProductIntentPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsAddProductIntentPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -1087,6 +2733,11 @@ export const organizationsProjectsChangeOrganizationCreateBodySessionRecordingTr
export const organizationsProjectsChangeOrganizationCreateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsChangeOrganizationCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsChangeOrganizationCreateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsChangeOrganizationCreateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsChangeOrganizationCreateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -1259,6 +2910,414 @@ export const OrganizationsProjectsChangeOrganizationCreateBody = /* @__PURE__ */
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsChangeOrganizationCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+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- BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsChangeOrganizationCreateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsChangeOrganizationCreateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -1282,6 +3341,11 @@ export const organizationsProjectsCompleteProductOnboardingPartialUpdateBodySess
export const organizationsProjectsCompleteProductOnboardingPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsCompleteProductOnboardingPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsCompleteProductOnboardingPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsCompleteProductOnboardingPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsCompleteProductOnboardingPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -1475,49 +3539,460 @@ export const OrganizationsProjectsCompleteProductOnboardingPartialUpdateBody = /
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+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AH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsCompleteProductOnboardingPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+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ON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsCompleteProductOnboardingPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsCompleteProductOnboardingPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
/**
- * Projects for the current organization.
+ * Manage default evaluation contexts for a project.
*/
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyNameMax = 200
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyNameMax = 200
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyProductDescriptionMax = 1000
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyProductDescriptionMax = 1000
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyAppUrlsItemMax = 200
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyAppUrlsItemMax = 200
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyPersonDisplayNamePropertiesItemMax = 400
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyPersonDisplayNamePropertiesItemMax = 400
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingSampleRateRegExp = new RegExp(
+export const organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingSampleRateRegExp = new RegExp(
'^-?\\d{0,1}(?:\\.\\d{0,2})?$'
)
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin = 0
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
+export const organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingMinimumDurationMillisecondsMin = 0
+export const organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax = 24
+export const organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingTriggerMatchTypeConfigMax = 24
-export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyRecordingDomainsItemMax = 200
-export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /* @__PURE__ */ zod
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsDefaultEvaluationContextsCreateBodyDefaultDataThemeMax = 2147483647
+
+export const OrganizationsProjectsDefaultEvaluationContextsCreateBody = /* @__PURE__ */ zod
.object({
name: zod
.string()
.min(1)
- .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyNameMax)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodyNameMax)
.optional()
.describe('Human-readable project name.'),
product_description: zod
.string()
- .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyProductDescriptionMax)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodyProductDescriptionMax)
.nullish()
.describe(
'Short description of what the project is about. This is helpful to give our AI agents context about your project.'
),
app_urls: zod
- .array(
- zod.string().max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyAppUrlsItemMax).nullable()
- )
+ .array(zod.string().max(organizationsProjectsDefaultEvaluationContextsCreateBodyAppUrlsItemMax).nullable())
.optional(),
anonymize_ips: zod
.boolean()
@@ -1555,9 +4030,7 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
.array(
zod
.string()
- .max(
- organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyPersonDisplayNamePropertiesItemMax
- )
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodyPersonDisplayNamePropertiesItemMax)
)
.nullish()
.describe('Ordered list of person properties used to render a human-friendly display name in the UI.'),
@@ -1591,7 +4064,7 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
session_recording_sample_rate: zod
.stringFormat(
'decimal',
- organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingSampleRateRegExp
+ organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingSampleRateRegExp
)
.nullish()
.describe(
@@ -1599,12 +4072,8 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
),
session_recording_minimum_duration_milliseconds: zod
.number()
- .min(
- organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin
- )
- .max(
- organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax
- )
+ .min(organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingMinimumDurationMillisecondsMin)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingMinimumDurationMillisecondsMax)
.nullish()
.describe('Skip saving sessions shorter than this many milliseconds.'),
session_recording_linked_flag: zod.unknown().optional(),
@@ -1615,7 +4084,7 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
session_recording_event_trigger_config: zod.array(zod.string().nullable()).nullish(),
session_recording_trigger_match_type_config: zod
.string()
- .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodySessionRecordingTriggerMatchTypeConfigMax)
.nullish(),
session_recording_trigger_groups: zod
.unknown()
@@ -1651,7 +4120,7 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
.array(
zod
.string()
- .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyRecordingDomainsItemMax)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodyRecordingDomainsItemMax)
.nullable()
)
.nullish()
@@ -1687,34 +4156,2306 @@ export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /*
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
- })
- .describe('Mixin for serializers to add user access control fields')
-
-/**
- * Projects for the current organization.
- */
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyNameMax = 200
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyProductDescriptionMax = 1000
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyAppUrlsItemMax = 200
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyPersonDisplayNamePropertiesItemMax = 400
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingSampleRateRegExp =
- new RegExp('^-?\\d{0,1}(?:\\.\\d{0,2})?$')
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingMinimumDurationMillisecondsMin = 0
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingTriggerMatchTypeConfigMax = 24
-
-export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyRecordingDomainsItemMax = 200
-
-export const OrganizationsProjectsGenerateConversationsPublicTokenCreateBody = /* @__PURE__ */ zod
- .object({
- name: zod
- .string()
- .min(1)
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 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SD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsDefaultEvaluationContextsCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
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` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsDefaultEvaluationContextsCreateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsDefaultEvaluationContextsCreateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
+ })
+ .describe('Mixin for serializers to add user access control fields')
+
+/**
+ * Manage default release conditions for new feature flags in this project.
+ */
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyNameMax = 200
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyProductDescriptionMax = 1000
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyAppUrlsItemMax = 200
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyPersonDisplayNamePropertiesItemMax = 400
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingSampleRateRegExp = new RegExp(
+ '^-?\\d{0,1}(?:\\.\\d{0,2})?$'
+)
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingMinimumDurationMillisecondsMin = 0
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingTriggerMatchTypeConfigMax = 24
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyRecordingDomainsItemMax = 200
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsDefaultReleaseConditionsUpdateBodyDefaultDataThemeMax = 2147483647
+
+export const OrganizationsProjectsDefaultReleaseConditionsUpdateBody = /* @__PURE__ */ zod
+ .object({
+ name: zod
+ .string()
+ .min(1)
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodyNameMax)
+ .optional()
+ .describe('Human-readable project name.'),
+ product_description: zod
+ .string()
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodyProductDescriptionMax)
+ .nullish()
+ .describe(
+ 'Short description of what the project is about. This is helpful to give our AI agents context about your project.'
+ ),
+ app_urls: zod
+ .array(zod.string().max(organizationsProjectsDefaultReleaseConditionsUpdateBodyAppUrlsItemMax).nullable())
+ .optional(),
+ anonymize_ips: zod
+ .boolean()
+ .optional()
+ .describe('When true, PostHog drops the IP address from every ingested event.'),
+ completed_snippet_onboarding: zod.boolean().optional(),
+ test_account_filters: zod
+ .unknown()
+ .optional()
+ .describe('Filter groups that identify internal\/test traffic to be excluded from insights.'),
+ test_account_filters_default_checked: zod
+ .boolean()
+ .nullish()
+ .describe('When true, new insights default to excluding internal\/test users.'),
+ path_cleaning_filters: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'Regex rewrite rules that collapse dynamic path segments (e.g. user IDs) before displaying URLs in paths.'
+ ),
+ is_demo: zod.boolean().optional(),
+ timezone: zod
+ .string()
+ .optional()
+ .describe(
+ 'IANA timezone used for date-based filters and reporting (e.g. `America\/Los_Angeles`).\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'
+ ),
+ data_attributes: zod
+ .unknown()
+ .optional()
+ .describe(
+ "Element attributes that posthog-js should capture as action identifiers (e.g. `['data-attr']`)."
+ ),
+ person_display_name_properties: zod
+ .array(
+ zod
+ .string()
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodyPersonDisplayNamePropertiesItemMax)
+ )
+ .nullish()
+ .describe('Ordered list of person properties used to render a human-friendly display name in the UI.'),
+ correlation_config: zod.unknown().optional(),
+ autocapture_opt_out: zod
+ .boolean()
+ .nullish()
+ .describe('Disables posthog-js autocapture (clicks, page views) when true.'),
+ autocapture_exceptions_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of JavaScript exceptions via the SDK.'),
+ autocapture_web_vitals_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of Core Web Vitals performance metrics.'),
+ autocapture_web_vitals_allowed_metrics: zod.unknown().optional(),
+ autocapture_exceptions_errors_to_ignore: zod.unknown().optional(),
+ capture_console_log_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing browser console logs alongside session replays.'),
+ capture_performance_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing performance timing and network requests.'),
+ session_recording_opt_in: zod
+ .boolean()
+ .optional()
+ .describe('Enables session replay recording for this project.'),
+ session_recording_sample_rate: zod
+ .stringFormat(
+ 'decimal',
+ organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingSampleRateRegExp
+ )
+ .nullish()
+ .describe(
+ 'Fraction of sessions to record, as a decimal string between `0.00` and `1.00` (e.g. `0.1` = 10%).'
+ ),
+ session_recording_minimum_duration_milliseconds: zod
+ .number()
+ .min(organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingMinimumDurationMillisecondsMin)
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingMinimumDurationMillisecondsMax)
+ .nullish()
+ .describe('Skip saving sessions shorter than this many milliseconds.'),
+ session_recording_linked_flag: zod.unknown().optional(),
+ session_recording_network_payload_capture_config: zod.unknown().optional(),
+ session_recording_masking_config: zod.unknown().optional(),
+ session_recording_url_trigger_config: zod.array(zod.unknown()).nullish(),
+ session_recording_url_blocklist_config: zod.array(zod.unknown()).nullish(),
+ session_recording_event_trigger_config: zod.array(zod.string().nullable()).nullish(),
+ session_recording_trigger_match_type_config: zod
+ .string()
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodySessionRecordingTriggerMatchTypeConfigMax)
+ .nullish(),
+ session_recording_trigger_groups: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'V2 trigger groups configuration for session recording. If present, takes precedence over legacy trigger fields.'
+ ),
+ session_recording_retention_period: zod
+ .enum(['30d', '90d', '1y', '5y'])
+ .describe('\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years')
+ .optional()
+ .describe(
+ 'How long to retain new session recordings. One of `30d`, `90d`, `1y`, or `5y` (availability depends on plan).\n\n\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years'
+ ),
+ session_replay_config: zod.unknown().optional(),
+ survey_config: zod.unknown().optional(),
+ access_control: zod.boolean().optional(),
+ week_start_day: zod
+ .union([
+ zod.union([zod.literal(0), zod.literal(1)]).describe('\* `0` - Sunday\n\* `1` - Monday'),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'First day of the week for date range filters. 0 = Sunday, 1 = Monday.\n\n\* `0` - Sunday\n\* `1` - Monday'
+ ),
+ primary_dashboard: zod
+ .number()
+ .nullish()
+ .describe("ID of the dashboard shown as the project's default landing dashboard."),
+ live_events_columns: zod.array(zod.string()).nullish(),
+ recording_domains: zod
+ .array(
+ zod
+ .string()
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodyRecordingDomainsItemMax)
+ .nullable()
+ )
+ .nullish()
+ .describe('Origins permitted to record session replays and heatmaps. Empty list allows all origins.'),
+ inject_web_apps: zod.boolean().nullish(),
+ extra_settings: zod.unknown().optional(),
+ modifiers: zod.unknown().optional(),
+ has_completed_onboarding_for: zod.unknown().optional(),
+ surveys_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables displaying surveys via posthog-js on allowed origins.'),
+ heatmaps_opt_in: zod.boolean().nullish().describe('Enables heatmap recording on pages that host posthog-js.'),
+ flags_persistence_default: zod
+ .boolean()
+ .nullish()
+ .describe('Default value for the `persist` option on newly created feature flags.'),
+ receive_org_level_activity_logs: zod.boolean().nullish(),
+ business_model: zod
+ .union([
+ zod.enum(['b2b', 'b2c', 'other']).describe('\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'),
+ zod.enum(['']),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Whether this project serves B2B or B2C customers. Used to optimize default UI layouts.\n\n\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'
+ ),
+ conversations_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Enables the customer conversations \/ live chat product for this project.'),
+ conversations_settings: zod.unknown().optional(),
+ logs_settings: zod.unknown().optional(),
+ proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsDefaultReleaseConditionsUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+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n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsDefaultReleaseConditionsUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsDefaultReleaseConditionsUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
+ })
+ .describe('Mixin for serializers to add user access control fields')
+
+/**
+ * Projects for the current organization.
+ */
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyNameMax = 200
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyProductDescriptionMax = 1000
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyAppUrlsItemMax = 200
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyPersonDisplayNamePropertiesItemMax = 400
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingSampleRateRegExp = new RegExp(
+ '^-?\\d{0,1}(?:\\.\\d{0,2})?$'
+)
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin = 0
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax = 24
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyRecordingDomainsItemMax = 200
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
+export const OrganizationsProjectsDeleteSecretTokenBackupPartialUpdateBody = /* @__PURE__ */ zod
+ .object({
+ name: zod
+ .string()
+ .min(1)
+ .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyNameMax)
+ .optional()
+ .describe('Human-readable project name.'),
+ product_description: zod
+ .string()
+ .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyProductDescriptionMax)
+ .nullish()
+ .describe(
+ 'Short description of what the project is about. This is helpful to give our AI agents context about your project.'
+ ),
+ app_urls: zod
+ .array(
+ zod.string().max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyAppUrlsItemMax).nullable()
+ )
+ .optional(),
+ anonymize_ips: zod
+ .boolean()
+ .optional()
+ .describe('When true, PostHog drops the IP address from every ingested event.'),
+ completed_snippet_onboarding: zod.boolean().optional(),
+ test_account_filters: zod
+ .unknown()
+ .optional()
+ .describe('Filter groups that identify internal\/test traffic to be excluded from insights.'),
+ test_account_filters_default_checked: zod
+ .boolean()
+ .nullish()
+ .describe('When true, new insights default to excluding internal\/test users.'),
+ path_cleaning_filters: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'Regex rewrite rules that collapse dynamic path segments (e.g. user IDs) before displaying URLs in paths.'
+ ),
+ is_demo: zod.boolean().optional(),
+ timezone: zod
+ .string()
+ .optional()
+ .describe(
+ 'IANA timezone used for date-based filters and reporting (e.g. `America\/Los_Angeles`).\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'
+ ),
+ data_attributes: zod
+ .unknown()
+ .optional()
+ .describe(
+ "Element attributes that posthog-js should capture as action identifiers (e.g. `['data-attr']`)."
+ ),
+ person_display_name_properties: zod
+ .array(
+ zod
+ .string()
+ .max(
+ organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyPersonDisplayNamePropertiesItemMax
+ )
+ )
+ .nullish()
+ .describe('Ordered list of person properties used to render a human-friendly display name in the UI.'),
+ correlation_config: zod.unknown().optional(),
+ autocapture_opt_out: zod
+ .boolean()
+ .nullish()
+ .describe('Disables posthog-js autocapture (clicks, page views) when true.'),
+ autocapture_exceptions_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of JavaScript exceptions via the SDK.'),
+ autocapture_web_vitals_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of Core Web Vitals performance metrics.'),
+ autocapture_web_vitals_allowed_metrics: zod.unknown().optional(),
+ autocapture_exceptions_errors_to_ignore: zod.unknown().optional(),
+ capture_console_log_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing browser console logs alongside session replays.'),
+ capture_performance_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing performance timing and network requests.'),
+ session_recording_opt_in: zod
+ .boolean()
+ .optional()
+ .describe('Enables session replay recording for this project.'),
+ session_recording_sample_rate: zod
+ .stringFormat(
+ 'decimal',
+ organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingSampleRateRegExp
+ )
+ .nullish()
+ .describe(
+ 'Fraction of sessions to record, as a decimal string between `0.00` and `1.00` (e.g. `0.1` = 10%).'
+ ),
+ session_recording_minimum_duration_milliseconds: zod
+ .number()
+ .min(
+ organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin
+ )
+ .max(
+ organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax
+ )
+ .nullish()
+ .describe('Skip saving sessions shorter than this many milliseconds.'),
+ session_recording_linked_flag: zod.unknown().optional(),
+ session_recording_network_payload_capture_config: zod.unknown().optional(),
+ session_recording_masking_config: zod.unknown().optional(),
+ session_recording_url_trigger_config: zod.array(zod.unknown()).nullish(),
+ session_recording_url_blocklist_config: zod.array(zod.unknown()).nullish(),
+ session_recording_event_trigger_config: zod.array(zod.string().nullable()).nullish(),
+ session_recording_trigger_match_type_config: zod
+ .string()
+ .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax)
+ .nullish(),
+ session_recording_trigger_groups: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'V2 trigger groups configuration for session recording. If present, takes precedence over legacy trigger fields.'
+ ),
+ session_recording_retention_period: zod
+ .enum(['30d', '90d', '1y', '5y'])
+ .describe('\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years')
+ .optional()
+ .describe(
+ 'How long to retain new session recordings. One of `30d`, `90d`, `1y`, or `5y` (availability depends on plan).\n\n\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years'
+ ),
+ session_replay_config: zod.unknown().optional(),
+ survey_config: zod.unknown().optional(),
+ access_control: zod.boolean().optional(),
+ week_start_day: zod
+ .union([
+ zod.union([zod.literal(0), zod.literal(1)]).describe('\* `0` - Sunday\n\* `1` - Monday'),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'First day of the week for date range filters. 0 = Sunday, 1 = Monday.\n\n\* `0` - Sunday\n\* `1` - Monday'
+ ),
+ primary_dashboard: zod
+ .number()
+ .nullish()
+ .describe("ID of the dashboard shown as the project's default landing dashboard."),
+ live_events_columns: zod.array(zod.string()).nullish(),
+ recording_domains: zod
+ .array(
+ zod
+ .string()
+ .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyRecordingDomainsItemMax)
+ .nullable()
+ )
+ .nullish()
+ .describe('Origins permitted to record session replays and heatmaps. Empty list allows all origins.'),
+ inject_web_apps: zod.boolean().nullish(),
+ extra_settings: zod.unknown().optional(),
+ modifiers: zod.unknown().optional(),
+ has_completed_onboarding_for: zod.unknown().optional(),
+ surveys_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables displaying surveys via posthog-js on allowed origins.'),
+ heatmaps_opt_in: zod.boolean().nullish().describe('Enables heatmap recording on pages that host posthog-js.'),
+ flags_persistence_default: zod
+ .boolean()
+ .nullish()
+ .describe('Default value for the `persist` option on newly created feature flags.'),
+ receive_org_level_activity_logs: zod.boolean().nullish(),
+ business_model: zod
+ .union([
+ zod.enum(['b2b', 'b2c', 'other']).describe('\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'),
+ zod.enum(['']),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Whether this project serves B2B or B2C customers. Used to optimize default UI layouts.\n\n\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'
+ ),
+ conversations_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Enables the customer conversations \/ live chat product for this project.'),
+ conversations_settings: zod.unknown().optional(),
+ logs_settings: zod.unknown().optional(),
+ proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 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- BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 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n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsDeleteSecretTokenBackupPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
+ })
+ .describe('Mixin for serializers to add user access control fields')
+
+/**
+ * Manage experiment configuration for this project.
+ */
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyNameMax = 200
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyProductDescriptionMax = 1000
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyAppUrlsItemMax = 200
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyPersonDisplayNamePropertiesItemMax = 400
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingSampleRateRegExp = new RegExp(
+ '^-?\\d{0,1}(?:\\.\\d{0,2})?$'
+)
+export const organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin = 0
+export const organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax = 24
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyRecordingDomainsItemMax = 200
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsExperimentsConfigPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
+export const OrganizationsProjectsExperimentsConfigPartialUpdateBody = /* @__PURE__ */ zod
+ .object({
+ name: zod
+ .string()
+ .min(1)
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodyNameMax)
+ .optional()
+ .describe('Human-readable project name.'),
+ product_description: zod
+ .string()
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodyProductDescriptionMax)
+ .nullish()
+ .describe(
+ 'Short description of what the project is about. This is helpful to give our AI agents context about your project.'
+ ),
+ app_urls: zod
+ .array(zod.string().max(organizationsProjectsExperimentsConfigPartialUpdateBodyAppUrlsItemMax).nullable())
+ .optional(),
+ anonymize_ips: zod
+ .boolean()
+ .optional()
+ .describe('When true, PostHog drops the IP address from every ingested event.'),
+ completed_snippet_onboarding: zod.boolean().optional(),
+ test_account_filters: zod
+ .unknown()
+ .optional()
+ .describe('Filter groups that identify internal\/test traffic to be excluded from insights.'),
+ test_account_filters_default_checked: zod
+ .boolean()
+ .nullish()
+ .describe('When true, new insights default to excluding internal\/test users.'),
+ path_cleaning_filters: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'Regex rewrite rules that collapse dynamic path segments (e.g. user IDs) before displaying URLs in paths.'
+ ),
+ is_demo: zod.boolean().optional(),
+ timezone: zod
+ .string()
+ .optional()
+ .describe(
+ 'IANA timezone used for date-based filters and reporting (e.g. `America\/Los_Angeles`).\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'
+ ),
+ data_attributes: zod
+ .unknown()
+ .optional()
+ .describe(
+ "Element attributes that posthog-js should capture as action identifiers (e.g. `['data-attr']`)."
+ ),
+ person_display_name_properties: zod
+ .array(
+ zod
+ .string()
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodyPersonDisplayNamePropertiesItemMax)
+ )
+ .nullish()
+ .describe('Ordered list of person properties used to render a human-friendly display name in the UI.'),
+ correlation_config: zod.unknown().optional(),
+ autocapture_opt_out: zod
+ .boolean()
+ .nullish()
+ .describe('Disables posthog-js autocapture (clicks, page views) when true.'),
+ autocapture_exceptions_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of JavaScript exceptions via the SDK.'),
+ autocapture_web_vitals_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables automatic capture of Core Web Vitals performance metrics.'),
+ autocapture_web_vitals_allowed_metrics: zod.unknown().optional(),
+ autocapture_exceptions_errors_to_ignore: zod.unknown().optional(),
+ capture_console_log_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing browser console logs alongside session replays.'),
+ capture_performance_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing performance timing and network requests.'),
+ session_recording_opt_in: zod
+ .boolean()
+ .optional()
+ .describe('Enables session replay recording for this project.'),
+ session_recording_sample_rate: zod
+ .stringFormat(
+ 'decimal',
+ organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingSampleRateRegExp
+ )
+ .nullish()
+ .describe(
+ 'Fraction of sessions to record, as a decimal string between `0.00` and `1.00` (e.g. `0.1` = 10%).'
+ ),
+ session_recording_minimum_duration_milliseconds: zod
+ .number()
+ .min(organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMin)
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingMinimumDurationMillisecondsMax)
+ .nullish()
+ .describe('Skip saving sessions shorter than this many milliseconds.'),
+ session_recording_linked_flag: zod.unknown().optional(),
+ session_recording_network_payload_capture_config: zod.unknown().optional(),
+ session_recording_masking_config: zod.unknown().optional(),
+ session_recording_url_trigger_config: zod.array(zod.unknown()).nullish(),
+ session_recording_url_blocklist_config: zod.array(zod.unknown()).nullish(),
+ session_recording_event_trigger_config: zod.array(zod.string().nullable()).nullish(),
+ session_recording_trigger_match_type_config: zod
+ .string()
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodySessionRecordingTriggerMatchTypeConfigMax)
+ .nullish(),
+ session_recording_trigger_groups: zod
+ .unknown()
+ .optional()
+ .describe(
+ 'V2 trigger groups configuration for session recording. If present, takes precedence over legacy trigger fields.'
+ ),
+ session_recording_retention_period: zod
+ .enum(['30d', '90d', '1y', '5y'])
+ .describe('\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years')
+ .optional()
+ .describe(
+ 'How long to retain new session recordings. One of `30d`, `90d`, `1y`, or `5y` (availability depends on plan).\n\n\* `30d` - 30 Days\n\* `90d` - 90 Days\n\* `1y` - 1 Year\n\* `5y` - 5 Years'
+ ),
+ session_replay_config: zod.unknown().optional(),
+ survey_config: zod.unknown().optional(),
+ access_control: zod.boolean().optional(),
+ week_start_day: zod
+ .union([
+ zod.union([zod.literal(0), zod.literal(1)]).describe('\* `0` - Sunday\n\* `1` - Monday'),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'First day of the week for date range filters. 0 = Sunday, 1 = Monday.\n\n\* `0` - Sunday\n\* `1` - Monday'
+ ),
+ primary_dashboard: zod
+ .number()
+ .nullish()
+ .describe("ID of the dashboard shown as the project's default landing dashboard."),
+ live_events_columns: zod.array(zod.string()).nullish(),
+ recording_domains: zod
+ .array(
+ zod
+ .string()
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodyRecordingDomainsItemMax)
+ .nullable()
+ )
+ .nullish()
+ .describe('Origins permitted to record session replays and heatmaps. Empty list allows all origins.'),
+ inject_web_apps: zod.boolean().nullish(),
+ extra_settings: zod.unknown().optional(),
+ modifiers: zod.unknown().optional(),
+ has_completed_onboarding_for: zod.unknown().optional(),
+ surveys_opt_in: zod
+ .boolean()
+ .nullish()
+ .describe('Enables displaying surveys via posthog-js on allowed origins.'),
+ heatmaps_opt_in: zod.boolean().nullish().describe('Enables heatmap recording on pages that host posthog-js.'),
+ flags_persistence_default: zod
+ .boolean()
+ .nullish()
+ .describe('Default value for the `persist` option on newly created feature flags.'),
+ receive_org_level_activity_logs: zod.boolean().nullish(),
+ business_model: zod
+ .union([
+ zod.enum(['b2b', 'b2c', 'other']).describe('\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'),
+ zod.enum(['']),
+ zod.null(),
+ ])
+ .optional()
+ .describe(
+ 'Whether this project serves B2B or B2C customers. Used to optimize default UI layouts.\n\n\* `b2b` - B2B\n\* `b2c` - B2C\n\* `other` - Other'
+ ),
+ conversations_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Enables the customer conversations \/ live chat product for this project.'),
+ conversations_settings: zod.unknown().optional(),
+ logs_settings: zod.unknown().optional(),
+ proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsExperimentsConfigPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD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D\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsExperimentsConfigPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsExperimentsConfigPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
+ })
+ .describe('Mixin for serializers to add user access control fields')
+
+/**
+ * Projects for the current organization.
+ */
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyNameMax = 200
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyProductDescriptionMax = 1000
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyAppUrlsItemMax = 200
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyPersonDisplayNamePropertiesItemMax = 400
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingSampleRateRegExp =
+ new RegExp('^-?\\d{0,1}(?:\\.\\d{0,2})?$')
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingMinimumDurationMillisecondsMin = 0
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingMinimumDurationMillisecondsMax = 30000
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodySessionRecordingTriggerMatchTypeConfigMax = 24
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyRecordingDomainsItemMax = 200
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsGenerateConversationsPublicTokenCreateBodyDefaultDataThemeMax = 2147483647
+
+export const OrganizationsProjectsGenerateConversationsPublicTokenCreateBody = /* @__PURE__ */ zod
+ .object({
+ name: zod
+ .string()
+ .min(1)
.max(organizationsProjectsGenerateConversationsPublicTokenCreateBodyNameMax)
.optional()
.describe('Human-readable project name.'),
@@ -1903,6 +6644,414 @@ export const OrganizationsProjectsGenerateConversationsPublicTokenCreateBody = /
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsGenerateConversationsPublicTokenCreateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
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n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsGenerateConversationsPublicTokenCreateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsGenerateConversationsPublicTokenCreateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -1929,6 +7078,11 @@ export const organizationsProjectsLogsConfigPartialUpdateBodySessionRecordingTri
export const organizationsProjectsLogsConfigPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsLogsConfigPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsLogsConfigPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsLogsConfigPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsLogsConfigPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -2097,6 +7251,414 @@ export const OrganizationsProjectsLogsConfigPartialUpdateBody = /* @__PURE__ */
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CN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AF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsLogsConfigPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'A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',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsLogsConfigPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsLogsConfigPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -2121,6 +7683,11 @@ export const organizationsProjectsResetTokenPartialUpdateBodySessionRecordingTri
export const organizationsProjectsResetTokenPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsResetTokenPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsResetTokenPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsResetTokenPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsResetTokenPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -2289,6 +7856,414 @@ export const OrganizationsProjectsResetTokenPartialUpdateBody = /* @__PURE__ */
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+ 'KGS',
+ 'KHR',
+ 'KMF',
+ 'KRW',
+ 'KWD',
+ 'KYD',
+ 'KZT',
+ 'LAK',
+ 'LBP',
+ 'LKR',
+ 'LRD',
+ 'LTL',
+ 'LVL',
+ 'LSL',
+ 'LYD',
+ 'MAD',
+ 'MDL',
+ 'MGA',
+ 'MKD',
+ 'MMK',
+ 'MNT',
+ 'MOP',
+ 'MRU',
+ 'MTL',
+ 'MUR',
+ 'MVR',
+ 'MWK',
+ 'MXN',
+ 'MYR',
+ 'MZN',
+ 'NAD',
+ 'NGN',
+ 'NIO',
+ 'NOK',
+ 'NPR',
+ 'NZD',
+ 'OMR',
+ 'PAB',
+ 'PEN',
+ 'PGK',
+ 'PHP',
+ 'PKR',
+ 'PLN',
+ 'PYG',
+ 'QAR',
+ 'RON',
+ 'RSD',
+ 'RUB',
+ 'RWF',
+ 'SAR',
+ 'SBD',
+ 'SCR',
+ 'SDG',
+ 'SEK',
+ 'SGD',
+ 'SRD',
+ 'SSP',
+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsResetTokenPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 'CVE',
+ 'CZK',
+ 'DJF',
+ 'DKK',
+ 'DOP',
+ 'DZD',
+ 'EGP',
+ 'ERN',
+ 'ETB',
+ 'EUR',
+ 'FJD',
+ 'GBP',
+ 'GEL',
+ 'GHS',
+ 'GIP',
+ 'GMD',
+ 'GNF',
+ 'GTQ',
+ 'GYD',
+ 'HKD',
+ 'HNL',
+ 'HRK',
+ 'HTG',
+ 'HUF',
+ 'IDR',
+ 'ILS',
+ 'INR',
+ 'IQD',
+ 'IRR',
+ 'ISK',
+ 'JMD',
+ 'JOD',
+ 'JPY',
+ 'KES',
+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BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsResetTokenPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsResetTokenPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
@@ -2313,6 +8288,11 @@ export const organizationsProjectsRotateSecretTokenPartialUpdateBodySessionRecor
export const organizationsProjectsRotateSecretTokenPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsRotateSecretTokenPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsRotateSecretTokenPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsRotateSecretTokenPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsRotateSecretTokenPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -2493,6 +8473,414 @@ export const OrganizationsProjectsRotateSecretTokenPartialUpdateBody = /* @__PUR
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+ 'CRC',
+ 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 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(
+ organizationsProjectsRotateSecretTokenPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax
+ )
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '\* `first_touch` - First Touch\n\* `last_touch` - Last Touch\n\* `linear` - Linear\n\* `time_decay` - Time Decay\n\* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU\/WAU\/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_\*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN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+ 'STN',
+ 'SYP',
+ 'SZL',
+ 'THB',
+ 'TJS',
+ 'TMT',
+ 'TND',
+ 'TOP',
+ 'TRY',
+ 'TTD',
+ 'TWD',
+ 'TZS',
+ 'UAH',
+ 'UGX',
+ 'USD',
+ 'UYU',
+ 'UZS',
+ 'VES',
+ 'VND',
+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '\* `AED` - AED\n\* `AFN` - AFN\n\* `ALL` - ALL\n\* `AMD` - AMD\n\* `ANG` - ANG\n\* `AOA` - AOA\n\* `ARS` - ARS\n\* `AUD` - AUD\n\* `AWG` - AWG\n\* `AZN` - AZN\n\* `BAM` - BAM\n\* `BBD` - BBD\n\* `BDT` - BDT\n\* `BGN` - BGN\n\* `BHD` - BHD\n\* `BIF` - BIF\n\* `BMD` - BMD\n\* `BND` - BND\n\* `BOB` - BOB\n\* `BRL` - BRL\n\* `BSD` - BSD\n\* `BTC` - BTC\n\* `BTN` - BTN\n\* `BWP` - BWP\n\* `BYN` - BYN\n\* `BZD` - BZD\n\* `CAD` - CAD\n\* `CDF` - CDF\n\* `CHF` - CHF\n\* `CLP` - CLP\n\* `CNY` - CNY\n\* `COP` - COP\n\* `CRC` - CRC\n\* `CVE` - CVE\n\* `CZK` - CZK\n\* `DJF` - DJF\n\* `DKK` - DKK\n\* `DOP` - DOP\n\* `DZD` - DZD\n\* `EGP` - EGP\n\* `ERN` - ERN\n\* `ETB` - ETB\n\* `EUR` - EUR\n\* `FJD` - FJD\n\* `GBP` - GBP\n\* `GEL` - GEL\n\* `GHS` - GHS\n\* `GIP` - GIP\n\* `GMD` - GMD\n\* `GNF` - GNF\n\* `GTQ` - GTQ\n\* `GYD` - GYD\n\* `HKD` - HKD\n\* `HNL` - HNL\n\* `HRK` - HRK\n\* `HTG` - HTG\n\* `HUF` - HUF\n\* `IDR` - IDR\n\* `ILS` - ILS\n\* `INR` - INR\n\* `IQD` - IQD\n\* `IRR` - IRR\n\* `ISK` - ISK\n\* `JMD` - JMD\n\* `JOD` - JOD\n\* `JPY` - JPY\n\* `KES` - KES\n\* `KGS` - KGS\n\* `KHR` - KHR\n\* `KMF` - KMF\n\* `KRW` - KRW\n\* `KWD` - KWD\n\* `KYD` - KYD\n\* `KZT` - KZT\n\* `LAK` - LAK\n\* `LBP` - LBP\n\* `LKR` - LKR\n\* `LRD` - LRD\n\* `LTL` - LTL\n\* `LVL` - LVL\n\* `LSL` - LSL\n\* `LYD` - LYD\n\* `MAD` - MAD\n\* `MDL` - MDL\n\* `MGA` - MGA\n\* `MKD` - MKD\n\* `MMK` - MMK\n\* `MNT` - MNT\n\* `MOP` - MOP\n\* `MRU` - MRU\n\* `MTL` - MTL\n\* `MUR` - MUR\n\* `MVR` - MVR\n\* `MWK` - MWK\n\* `MXN` - MXN\n\* `MYR` - MYR\n\* `MZN` - MZN\n\* `NAD` - NAD\n\* `NGN` - NGN\n\* `NIO` - NIO\n\* `NOK` - NOK\n\* `NPR` - NPR\n\* `NZD` - NZD\n\* `OMR` - OMR\n\* `PAB` - PAB\n\* `PEN` - PEN\n\* `PGK` - PGK\n\* `PHP` - PHP\n\* `PKR` - PKR\n\* `PLN` - PLN\n\* `PYG` - PYG\n\* `QAR` - QAR\n\* `RON` - RON\n\* `RSD` - RSD\n\* `RUB` - RUB\n\* `RWF` - RWF\n\* `SAR` - SAR\n\* `SBD` - SBD\n\* `SCR` - SCR\n\* `SDG` - SDG\n\* `SEK` - SEK\n\* `SGD` - SGD\n\* `SRD` - SRD\n\* `SSP` - SSP\n\* `STN` - STN\n\* `SYP` - SYP\n\* `SZL` - SZL\n\* `THB` - THB\n\* `TJS` - TJS\n\* `TMT` - TMT\n\* `TND` - TND\n\* `TOP` - TOP\n\* `TRY` - TRY\n\* `TTD` - TTD\n\* `TWD` - TWD\n\* `TZS` - TZS\n\* `UAH` - UAH\n\* `UGX` - UGX\n\* `USD` - USD\n\* `UYU` - UYU\n\* `UZS` - UZS\n\* `VES` - VES\n\* `VND` - VND\n\* `VUV` - VUV\n\* `WST` - WST\n\* `XAF` - XAF\n\* `XCD` - XCD\n\* `XOF` - XOF\n\* `XPF` - XPF\n\* `YER` - YER\n\* `ZAR` - ZAR\n\* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('\* `0` - Disabled\n\* `1` - Stateless\n\* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsRotateSecretTokenPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsRotateSecretTokenPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
diff --git a/posthog/api/project.py b/posthog/api/project.py
index cc6f61e27231..e8331cc71604 100644
--- a/posthog/api/project.py
+++ b/posthog/api/project.py
@@ -1,9 +1,13 @@
+import math
from functools import cached_property
from typing import Any, Optional, cast
from django.conf import settings
from django.db import transaction
+from django.db.models import Model
from django.shortcuts import get_object_or_404
+from django.utils import timezone
+from django.utils.dateparse import parse_datetime
import structlog
from drf_spectacular.utils import extend_schema, extend_schema_field, extend_schema_view
@@ -16,11 +20,23 @@ from posthog.schema import ProductKey
from posthog.api.routing import TeamAndOrgViewSetMixin
from posthog.api.shared import ProjectBackwardCompatBasicSerializer
+
+# These are imported from team.py for now. They are part of the legacy /api/environments/ surface and are
+# expected to move project-side (or to a neutral module) in a later PR once /api/environments/ is retired —
+# project.py must NOT depend on team.py at that point. The parity *logic* (config writes, retention check,
+# and the team-config actions) is defined locally below rather than imported, so it survives that removal.
from posthog.api.team import (
PROMOTED_PRODUCT_INTENT_DESCRIPTION,
+ TEAM_CONFIG_FIELDS,
TEAM_CONFIG_MEMBER_FIELDS_SET,
PromotedProductIntentSerializer,
+ TeamCustomerAnalyticsConfigSerializer,
+ TeamMarketingAnalyticsConfigSerializer,
+ TeamRevenueAnalyticsConfigSerializer,
TeamSerializer,
+ TeamWorkflowsConfigSerializer,
+ _default_data_color_theme_id,
+ _format_serializer_errors,
get_or_mint_live_events_token,
handle_conversations_token_on_update,
handle_logs_config,
@@ -34,6 +50,7 @@ from posthog.event_usage import report_user_action
from posthog.geoip import get_geoip_properties
from posthog.models import User
from posthog.models.activity_logging.activity_log import (
+ ActivityLog,
Change,
Detail,
dict_changes_between,
@@ -41,6 +58,7 @@ from posthog.models.activity_logging.activity_log import (
log_activity,
)
from posthog.models.activity_logging.activity_page import activity_page_response
+from posthog.models.event_ingestion_restriction_config import EventIngestionRestrictionConfig
from posthog.models.group_type_mapping import cached_group_types_for_project
from posthog.models.organization import Organization, OrganizationMembership
from posthog.models.product_intent import promoted_product_lookup
@@ -50,8 +68,9 @@ from posthog.models.product_intent.product_intent import (
calculate_product_activation,
)
from posthog.models.project import Project
+from posthog.models.team.extensions import get_or_create_team_extension
from posthog.models.team.setup_tasks import SetupTaskId
-from posthog.models.team.team import Team
+from posthog.models.team.team import CURRENCY_CODE_CHOICES, Team
from posthog.models.team.util import actions_that_require_current_team
from posthog.models.utils import UUIDT
from posthog.permissions import (
@@ -69,10 +88,22 @@ from posthog.rbac.user_access_control import (
resource_to_display_name,
)
from posthog.scopes import APIScopeObjectOrNotSupported
+from posthog.session_recordings.data_retention import (
+ VALID_RETENTION_PERIODS,
+ parse_feature_to_entitlement,
+ retention_violates_entitlement,
+ validate_retention_period,
+)
from posthog.tasks.tasks import delete_project_data_and_notify_task
from posthog.user_permissions import UserPermissions, UserPermissionsSerializerMixin
from posthog.utils import get_instance_realm, get_ip_address, get_week_start_for_country_code
+from products.feature_flags.backend.models import TeamFeatureFlagDefaultsConfig
+from products.feature_flags.backend.models.evaluation_context import (
+ EvaluationContext,
+ TeamDefaultEvaluationContext,
+ normalize_context_name,
+)
from products.notifications.backend.facade.api import (
NotificationData,
NotificationType,
@@ -88,6 +119,372 @@ logger = structlog.get_logger(__name__)
MAX_ALLOWED_PROJECTS_PER_ORG = 1500
+# --- Backward-compatibility logic for the /api/projects/ surface ---
+# These mirror the behaviour of the legacy /api/environments/ (TeamViewSet/TeamSerializer) endpoints, operating
+# on a project's passthrough Team. They live here — not imported from team.py — so /api/projects/ keeps working
+# after /api/environments/ is retired. Until then both surfaces intentionally carry equivalent logic; the
+# introspection test in test_team_project_parity.py guards against drift.
+def capture_team_config_diff(team: Team, key: str, before: dict, after: dict, *, context: dict) -> None:
+ changes = dict_changes_between("Team", {key: before}, {key: after}, use_field_exclusions=True)
+ if changes:
+ request = context["request"]
+ log_activity(
+ organization_id=cast(UUIDT, team.organization_id),
+ team_id=team.pk,
+ user=cast(User, request.user),
+ was_impersonated=is_impersonated_session(request),
+ scope="Team",
+ item_id=team.pk,
+ activity="updated",
+ detail=Detail(name=str(team.name), changes=changes),
+ )
+
+
+def update_team_revenue_analytics_config(team: Team, validated_data: dict[str, Any], *, context: dict) -> None:
+ user_access_control = context.get("user_access_control")
+ old_config = {
+ "events": [event.model_dump() for event in (team.revenue_analytics_config.events or [])],
+ "goals": [goal.model_dump() for goal in (team.revenue_analytics_config.goals or [])],
+ "filter_test_accounts": team.revenue_analytics_config.filter_test_accounts,
+ }
+
+ serializer = TeamRevenueAnalyticsConfigSerializer(
+ team.revenue_analytics_config,
+ data=validated_data,
+ partial=True,
+ context={**context, "user_access_control": user_access_control},
+ )
+ if not serializer.is_valid():
+ raise serializers.ValidationError(_format_serializer_errors(serializer.errors))
+
+ serializer.save()
+
+ new_config = {
+ "events": validated_data.get("events", []),
+ "goals": validated_data.get("goals", []),
+ "filter_test_accounts": validated_data.get("filter_test_accounts", False),
+ }
+
+ capture_team_config_diff(team, "revenue_analytics_config", old_config, new_config, context=context)
+
+ if "events" in validated_data:
+ from products.data_modeling.backend.models.datawarehouse_managed_viewset import DataWarehouseManagedViewSet
+ from products.data_warehouse.backend.types import DataWarehouseManagedViewSetKind
+
+ managed_viewset, _ = DataWarehouseManagedViewSet.objects.get_or_create(
+ team=team,
+ kind=DataWarehouseManagedViewSetKind.REVENUE_ANALYTICS,
+ )
+ managed_viewset.sync_views()
+
+
+def update_team_marketing_analytics_config(team: Team, validated_data: dict[str, Any], *, context: dict) -> None:
+ user_access_control = context.get("user_access_control")
+ old_config = {
+ "sources_map": (
+ team.marketing_analytics_config.sources_map.copy() if team.marketing_analytics_config.sources_map else {}
+ ),
+ "attribution_window_days": team.marketing_analytics_config.attribution_window_days,
+ "attribution_mode": team.marketing_analytics_config.attribution_mode,
+ }
+
+ marketing_serializer = TeamMarketingAnalyticsConfigSerializer(
+ team.marketing_analytics_config,
+ data=validated_data,
+ partial=True,
+ context={**context, "user_access_control": user_access_control},
+ )
+ if not marketing_serializer.is_valid():
+ raise serializers.ValidationError(_format_serializer_errors(marketing_serializer.errors))
+
+ marketing_serializer.save()
+
+ new_config = {
+ "sources_map": validated_data.get("sources_map", {}),
+ "attribution_window_days": validated_data.get("attribution_window_days"),
+ "attribution_mode": validated_data.get("attribution_mode"),
+ }
+
+ capture_team_config_diff(team, "marketing_analytics_config", old_config, new_config, context=context)
+
+
+def update_team_customer_analytics_config(team: Team, validated_data: dict[str, Any], *, context: dict) -> None:
+ user_access_control = context.get("user_access_control")
+ old_config = {
+ "activity_event": team.customer_analytics_config.activity_event,
+ "signup_pageview_event": team.customer_analytics_config.signup_pageview_event,
+ "signup_event": team.customer_analytics_config.signup_event,
+ "subscription_event": team.customer_analytics_config.subscription_event,
+ "payment_event": team.customer_analytics_config.payment_event,
+ "account_group_type_index": team.customer_analytics_config.account_group_type_index,
+ }
+
+ serializer = TeamCustomerAnalyticsConfigSerializer(
+ team.customer_analytics_config,
+ data=validated_data,
+ partial=True,
+ context={**context, "user_access_control": user_access_control},
+ )
+ if not serializer.is_valid():
+ raise serializers.ValidationError(_format_serializer_errors(serializer.errors))
+
+ serializer.save()
+
+ new_config = {
+ field: getattr(team.customer_analytics_config, field)
+ for field in TeamCustomerAnalyticsConfigSerializer.Meta.fields
+ }
+ capture_team_config_diff(team, "customer_analytics_config", old_config, new_config, context=context)
+
+
+def update_team_workflows_config(team: Team, validated_data: dict[str, Any], *, context: dict) -> None:
+ user_access_control = context.get("user_access_control")
+ old_config = {field: getattr(team.workflows_config, field) for field in TeamWorkflowsConfigSerializer.Meta.fields}
+
+ serializer = TeamWorkflowsConfigSerializer(
+ team.workflows_config,
+ data=validated_data,
+ partial=True,
+ context={**context, "user_access_control": user_access_control},
+ )
+ if not serializer.is_valid():
+ raise serializers.ValidationError(_format_serializer_errors(serializer.errors))
+
+ serializer.save()
+
+ new_config = {field: getattr(team.workflows_config, field) for field in TeamWorkflowsConfigSerializer.Meta.fields}
+ capture_team_config_diff(team, "workflows_config", old_config, new_config, context=context)
+
+
+def verify_team_session_recording_retention_period(team: Team, new_retention_period: str) -> None:
+ retention_feature = team.organization.get_available_feature(AvailableFeature.SESSION_REPLAY_DATA_RETENTION)
+ highest_retention_entitlement = parse_feature_to_entitlement(retention_feature)
+
+ if highest_retention_entitlement is None:
+ raise exceptions.APIException(detail="Invalid retention entitlement.") # HTTP 500
+
+ if not validate_retention_period(new_retention_period):
+ raise exceptions.ValidationError( # HTTP 400
+ f"Must provide a valid retention period. Options are: {VALID_RETENTION_PERIODS}."
+ )
+
+ if retention_violates_entitlement(new_retention_period, highest_retention_entitlement):
+ raise exceptions.PermissionDenied( # HTTP 403
+ f"This organization does not have permission to set retention period of length '{new_retention_period}' - longest allowable retention period is '{highest_retention_entitlement}'."
+ )
+
+
+def team_default_release_conditions_view(team: Team, request: request.Request) -> response.Response:
+ """Manage default release conditions for new feature flags in this project."""
+ config = get_or_create_team_extension(team, TeamFeatureFlagDefaultsConfig)
+
+ if request.method == "GET":
+ return response.Response({"enabled": config.enabled, "default_groups": config.default_groups})
+
+ enabled = request.data.get("enabled", config.enabled)
+ default_groups = request.data.get("default_groups", config.default_groups)
+
+ if not isinstance(default_groups, list):
+ return response.Response({"error": "default_groups must be a list"}, status=400)
+
+ for i, group in enumerate(default_groups):
+ if not isinstance(group, dict):
+ return response.Response({"error": f"Group at index {i} must be an object"}, status=400)
+ if "properties" not in group or not isinstance(group["properties"], list):
+ return response.Response({"error": f"Group at index {i} must have a 'properties' list"}, status=400)
+ rollout = group.get("rollout_percentage")
+ if rollout is not None and (
+ not isinstance(rollout, (int, float)) or math.isnan(rollout) or rollout < 0 or rollout > 100
+ ):
+ return response.Response(
+ {"error": f"Group at index {i} has invalid rollout_percentage (must be 0-100 or null)"}, status=400
+ )
+
+ config.enabled = enabled
+ config.default_groups = default_groups
+ config.save()
+
+ report_user_action(
+ request.user,
+ "default release conditions updated",
+ {"team_id": team.id, "enabled": enabled, "group_count": len(default_groups)},
+ )
+
+ return response.Response({"enabled": config.enabled, "default_groups": config.default_groups})
+
+
+def team_experiments_config_view(team: Team, request: request.Request) -> response.Response:
+ """Manage experiment configuration for this project."""
+ from products.experiments.backend.models.team_experiments_config import TeamExperimentsConfig
+
+ class TeamExperimentsConfigSerializer(serializers.ModelSerializer):
+ class Meta:
+ model = TeamExperimentsConfig
+ fields = [
+ "experiment_recalculation_time",
+ "default_experiment_confidence_level",
+ "default_experiment_stats_method",
+ "experiment_precomputation_enabled",
+ "default_only_count_matured_users",
+ "default_cuped_enabled",
+ "default_cuped_lookback_days",
+ "default_minimum_detectable_effect",
+ "default_sequential_testing_enabled",
+ "default_sequential_tuning_parameter",
+ ]
+
+ config = get_or_create_team_extension(team, TeamExperimentsConfig)
+
+ if request.method == "PATCH":
+ serializer = TeamExperimentsConfigSerializer(config, data=request.data, partial=True)
+ serializer.is_valid(raise_exception=True)
+ serializer.save()
+ return response.Response(serializer.data)
+
+ return response.Response(TeamExperimentsConfigSerializer(config).data)
+
+
+def team_default_evaluation_contexts_view(team: Team, request: request.Request) -> response.Response:
+ """Manage default evaluation contexts for a project."""
+ if request.method == "GET":
+ defaults = TeamDefaultEvaluationContext.objects.filter(team=team).select_related("evaluation_context")
+ defaults_data = [{"id": d.id, "name": d.evaluation_context.name} for d in defaults]
+ all_contexts = list(EvaluationContext.objects.filter(team=team).values_list("name", flat=True).order_by("name"))
+ return response.Response(
+ {
+ "default_evaluation_contexts": defaults_data,
+ "available_contexts": all_contexts,
+ "enabled": team.default_evaluation_contexts_enabled,
+ }
+ )
+
+ elif request.method == "POST":
+ context_name = request.data.get("context_name", "")
+ if not isinstance(context_name, str):
+ return response.Response({"error": "context_name must be a string"}, status=400)
+ context_name = normalize_context_name(context_name)
+ if not context_name:
+ return response.Response({"error": "context_name is required"}, status=400)
+ if len(context_name) > 255:
+ return response.Response({"error": "context_name must be at most 255 characters"}, status=400)
+
+ with transaction.atomic():
+ existing = list(TeamDefaultEvaluationContext.objects.filter(team=team).select_for_update())
+ if len(existing) >= 10:
+ return response.Response({"error": "Maximum of 10 default evaluation contexts allowed"}, status=400)
+
+ ctx, _ = EvaluationContext.objects.get_or_create(name=context_name, team=team)
+ default_ctx, created = TeamDefaultEvaluationContext.objects.get_or_create(team=team, evaluation_context=ctx)
+
+ if created:
+ report_user_action(
+ cast(User, request.user),
+ "default evaluation context added",
+ {"team_id": team.id, "context_name": context_name},
+ team=team,
+ request=request,
+ )
+
+ return response.Response({"id": default_ctx.id, "name": ctx.name, "created": created})
+
+ else: # DELETE
+ context_name = request.data.get("context_name", "") or request.GET.get("context_name", "")
+ if not isinstance(context_name, str):
+ return response.Response({"error": "context_name must be a string"}, status=400)
+ context_name = normalize_context_name(context_name)
+ if not context_name:
+ return response.Response({"error": "context_name is required"}, status=400)
+
+ with transaction.atomic():
+ try:
+ ctx = EvaluationContext.objects.get(name=context_name, team=team)
+ deleted_count, _ = TeamDefaultEvaluationContext.objects.filter(
+ team=team, evaluation_context=ctx
+ ).delete()
+
+ if deleted_count > 0:
+ report_user_action(
+ cast(User, request.user),
+ "default evaluation context removed",
+ {"team_id": team.id, "context_name": context_name},
+ team=team,
+ request=request,
+ )
+
+ return response.Response({"success": True})
+ except EvaluationContext.DoesNotExist:
+ return response.Response({"error": "Evaluation context not found"}, status=404)
+
+
+def team_settings_as_of_view(team: Team, request: request.Request) -> response.Response:
+ """
+ Return the project settings as of the provided timestamp.
+ Query params:
+ - at: ISO8601 datetime (required)
+ - scope: optional, one or multiple keys to filter the returned settings
+ """
+ at_param = request.query_params.get("at")
+ if not at_param:
+ raise exceptions.ValidationError({"at": "Query parameter 'at' is required (ISO8601)."})
+
+ as_of = parse_datetime(at_param)
+ if as_of is None:
+ raise exceptions.ValidationError({"at": "Invalid datetime format. Use ISO8601 (e.g., 2025-11-24T12:34:56Z)."})
+ if timezone.is_naive(as_of):
+ as_of = timezone.make_aware(as_of)
+
+ settings_fields = set(TEAM_CONFIG_FIELDS)
+ snapshot: dict[str, Any] = {}
+ for field_name in settings_fields:
+ if hasattr(team, field_name):
+ snapshot[field_name] = getattr(team, field_name)
+ elif hasattr(team, f"{field_name}_id"):
+ snapshot[field_name] = getattr(team, f"{field_name}_id")
+ else:
+ snapshot[field_name] = None
+
+ logs = (
+ ActivityLog.objects.filter(team_id=team.id, scope="Team", item_id=str(team.id), created_at__gt=as_of)
+ .order_by("-created_at")
+ .only("detail", "created_at", "activity")
+ )
+
+ for log in logs.iterator():
+ detail = log.detail or {}
+ changes = detail.get("changes") or []
+ for change in changes:
+ field = change.get("field")
+ action = change.get("action")
+ before = change.get("before")
+
+ target = field[:-3] if isinstance(field, str) and field.endswith("_id") else field
+ if target not in settings_fields:
+ continue
+
+ if action == "changed":
+ snapshot[target] = before
+ elif action == "created":
+ snapshot[target] = None
+ elif action == "deleted":
+ snapshot[target] = before
+
+ scope_values = request.query_params.getlist("scope")
+ if scope_values:
+ filtered = {k: snapshot.get(k, None) for k in scope_values}
+ return response.Response(filtered)
+
+ return response.Response(snapshot)
+
+
+def team_event_ingestion_restrictions_view(team: Team, request: request.Request) -> response.Response:
+ restrictions = EventIngestionRestrictionConfig.objects.filter(token=team.api_token)
+ data = [
+ {"restriction_type": restriction.restriction_type, "distinct_ids": restriction.distinct_ids}
+ for restriction in restrictions
+ ]
+ return response.Response(data)
+
+
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
@@ -107,9 +504,22 @@ class ProjectBackwardCompatSerializer(
live_events_token = serializers.SerializerMethodField() # Compat with TeamSerializer
product_intents = serializers.SerializerMethodField() # Compat with TeamSerializer
available_setup_task_ids = serializers.SerializerMethodField() # Compat with TeamSerializer
+ managed_viewsets = serializers.SerializerMethodField() # Compat with TeamSerializer
# These are @property attrs on Team, not Django model fields — declare explicitly so drf-spectacular can resolve them
default_modifiers = serializers.DictField(read_only=True) # Compat with TeamSerializer
person_on_events_querying_enabled = serializers.BooleanField(read_only=True) # Compat with TeamSerializer
+ # project_id mirrors TeamSerializer.project_id; for a Project it equals its own id (Project ↔ Team is 1:1)
+ project_id = serializers.IntegerField(
+ source="id", read_only=True, help_text="ID of the project this environment belongs to."
+ )
+ # Analytics config sub-objects live on the passthrough Team — reuse the Team serializers for identical shape
+ revenue_analytics_config = TeamRevenueAnalyticsConfigSerializer(required=False) # Compat with TeamSerializer
+ marketing_analytics_config = TeamMarketingAnalyticsConfigSerializer(required=False) # Compat with TeamSerializer
+ customer_analytics_config = TeamCustomerAnalyticsConfigSerializer(required=False) # Compat with TeamSerializer
+ workflows_config = TeamWorkflowsConfigSerializer(required=False) # Compat with TeamSerializer
+ # No `default` on purpose: a default value would be auto-injected into every create payload, which trips the
+ # admin-only-fields-on-creation gate in validate_team_attrs and blocks members allowed to create projects.
+ base_currency = serializers.ChoiceField(choices=CURRENCY_CODE_CHOICES, required=False) # Compat with TeamSerializer
def validate_app_urls(self, value: list[str | None] | None) -> list[str] | None:
if value is None:
@@ -202,6 +612,24 @@ class ProjectBackwardCompatSerializer(
"proactive_tasks_enabled", # Compat with TeamSerializer
"available_setup_task_ids", # Compat with TeamSerializer
"is_pending_deletion",
+ "project_id", # Compat with TeamSerializer
+ "user_access_level", # Compat with TeamSerializer
+ "managed_viewsets", # Compat with TeamSerializer
+ "revenue_analytics_config", # Compat with TeamSerializer
+ "marketing_analytics_config", # Compat with TeamSerializer
+ "customer_analytics_config", # Compat with TeamSerializer
+ "workflows_config", # Compat with TeamSerializer
+ "base_currency", # Compat with TeamSerializer
+ "capture_dead_clicks", # Compat with TeamSerializer
+ "cookieless_server_hash_mode", # Compat with TeamSerializer
+ "human_friendly_comparison_periods", # Compat with TeamSerializer
+ "feature_flag_confirmation_enabled", # Compat with TeamSerializer
+ "feature_flag_confirmation_message", # Compat with TeamSerializer
+ "default_evaluation_contexts_enabled", # Compat with TeamSerializer
+ "require_evaluation_contexts", # Compat with TeamSerializer
+ "default_data_theme", # Compat with TeamSerializer
+ "onboarding_tasks", # Compat with TeamSerializer
+ "web_analytics_pre_aggregated_tables_enabled", # Compat with TeamSerializer
)
read_only_fields = (
"id",
@@ -222,6 +650,9 @@ class ProjectBackwardCompatSerializer(
"secret_api_token",
"secret_api_token_backup",
"available_setup_task_ids",
+ "project_id",
+ "user_access_level",
+ "managed_viewsets",
)
team_passthrough_fields = {
@@ -283,6 +714,21 @@ class ProjectBackwardCompatSerializer(
"conversations_settings",
"logs_settings",
"proactive_tasks_enabled",
+ "base_currency",
+ "capture_dead_clicks",
+ "cookieless_server_hash_mode",
+ "human_friendly_comparison_periods",
+ "feature_flag_confirmation_enabled",
+ "feature_flag_confirmation_message",
+ "default_evaluation_contexts_enabled",
+ "require_evaluation_contexts",
+ "default_data_theme",
+ "onboarding_tasks",
+ "web_analytics_pre_aggregated_tables_enabled",
+ "revenue_analytics_config",
+ "marketing_analytics_config",
+ "customer_analytics_config",
+ "workflows_config",
}
# help_text entries flow into the generated OpenAPI spec, frontend types, and MCP tool schemas.
@@ -363,6 +809,43 @@ class ProjectBackwardCompatSerializer(
},
}
+ def to_representation(self, instance):
+ representation = super().to_representation(instance)
+ # Mirror TeamSerializer: fall back to the global default data theme when the color feature isn't available
+ if not instance.organization.is_feature_available(AvailableFeature.DATA_COLOR_THEMES):
+ representation["default_data_theme"] = _default_data_color_theme_id()
+ return representation
+
+ def get_user_access_level(self, obj: Model) -> Optional[str]:
+ # The access-control system is keyed on the Team, so resolve through the passthrough Team
+ return super().get_user_access_level(cast(Project, obj).passthrough_team)
+
+ @extend_schema_field(serializers.DictField(child=serializers.BooleanField()))
+ def get_managed_viewsets(self, obj: Project) -> dict[str, bool]:
+ from products.data_modeling.backend.models.datawarehouse_managed_viewset import DataWarehouseManagedViewSet
+ from products.data_warehouse.backend.types import DataWarehouseManagedViewSetKind
+
+ enabled_set = set(
+ DataWarehouseManagedViewSet.objects.filter(team=obj.passthrough_team).values_list("kind", flat=True)
+ )
+ return {kind: (kind in enabled_set) for kind, _ in DataWarehouseManagedViewSetKind.choices}
+
+ @staticmethod
+ def validate_revenue_analytics_config(value):
+ return TeamSerializer.validate_revenue_analytics_config(value)
+
+ @staticmethod
+ def validate_marketing_analytics_config(value):
+ return TeamSerializer.validate_marketing_analytics_config(value)
+
+ @staticmethod
+ def validate_customer_analytics_config(value):
+ return TeamSerializer.validate_customer_analytics_config(value)
+
+ @staticmethod
+ def validate_workflows_config(value):
+ return TeamSerializer.validate_workflows_config(value)
+
def get_effective_membership_level(self, project: Project) -> Optional[OrganizationMembership.Level]:
team = project.teams.get(pk=project.pk)
return self.user_permissions.team(team).effective_membership_level
@@ -475,6 +958,16 @@ class ProjectBackwardCompatSerializer(
return super().validate(attrs)
def create(self, validated_data: dict[str, Any], **kwargs) -> Project:
+ # Analytics config sub-objects are created with the Team's defaults and only mutated via update;
+ # drop any provided at creation so they don't reach create_with_team (matches TeamSerializer.create).
+ for config_field in (
+ "revenue_analytics_config",
+ "marketing_analytics_config",
+ "customer_analytics_config",
+ "workflows_config",
+ ):
+ validated_data.pop(config_field, None)
+
serializers.raise_errors_on_nested_writes("create", self, validated_data)
request = self.context["request"]
@@ -529,6 +1022,21 @@ class ProjectBackwardCompatSerializer(
team_before_update = team.__dict__.copy()
project_before_update = instance.__dict__.copy()
+ # Analytics configs live on related models, not Team columns — handle them via the shared helpers
+ # (the same ones TeamSerializer uses) before the generic passthrough loop, and keep them out of it.
+ config_context = {**self.context, "user_access_control": self.user_access_control}
+ if config_data := validated_data.pop("revenue_analytics_config", None):
+ update_team_revenue_analytics_config(team, config_data, context=config_context)
+ if config_data := validated_data.pop("marketing_analytics_config", None):
+ update_team_marketing_analytics_config(team, config_data, context=config_context)
+ if config_data := validated_data.pop("customer_analytics_config", None):
+ update_team_customer_analytics_config(team, config_data, context=config_context)
+ if config_data := validated_data.pop("workflows_config", None):
+ update_team_workflows_config(team, config_data, context=config_context)
+
+ if "session_recording_retention_period" in validated_data:
+ verify_team_session_recording_retention_period(team, validated_data["session_recording_retention_period"])
+
if "survey_config" in validated_data:
if team.survey_config is not None and validated_data.get("survey_config") is not None:
validated_data["survey_config"] = {
@@ -771,6 +1279,13 @@ class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets
if request_fields and request_fields.issubset(TEAM_CONFIG_MEMBER_FIELDS_SET):
return ["project:read"]
+ # Team-level config actions that any member should be able to edit via the UI.
+ # Only downgrade for session auth to preserve read-only API key semantics.
+ if self.action in ("default_release_conditions", "default_evaluation_contexts"):
+ is_session_auth = isinstance(request.successful_authenticator, SessionAuthentication)
+ if is_session_auth:
+ return ["project:read"]
+
# Fall back to the default behavior
return None
@@ -1009,6 +1524,51 @@ class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets
product_key = promoted_product_lookup.get_promoted_product_intent(team.pk)
return response.Response({"product_key": product_key})
+ # The following actions mirror TeamViewSet, operating on the project's passthrough Team. They delegate to
+ # the shared team_*_view helpers so /api/projects/ and /api/environments/ cannot drift apart.
+ @action(
+ methods=["GET", "PUT"],
+ detail=True,
+ permission_classes=[TeamMemberLightManagementPermission],
+ url_path="default_release_conditions",
+ )
+ def default_release_conditions(self, request: request.Request, id: str, **kwargs) -> response.Response:
+ """Manage default release conditions for new feature flags in this project."""
+ return team_default_release_conditions_view(self.get_object().passthrough_team, request)
+
+ @action(
+ methods=["GET", "PATCH"],
+ detail=True,
+ permission_classes=[TeamMemberStrictManagementPermission],
+ url_path="experiments_config",
+ )
+ def experiments_config(self, request: request.Request, id: str, **kwargs) -> response.Response:
+ """Manage experiment configuration for this project."""
+ return team_experiments_config_view(self.get_object().passthrough_team, request)
+
+ @action(
+ methods=["GET", "POST", "DELETE"],
+ detail=True,
+ permission_classes=[IsAuthenticated],
+ )
+ def default_evaluation_contexts(self, request: request.Request, id: str, **kwargs) -> response.Response:
+ """Manage default evaluation contexts for a project."""
+ return team_default_evaluation_contexts_view(self.get_object().passthrough_team, request)
+
+ @action(methods=["GET"], detail=True)
+ def settings_as_of(self, request: request.Request, **kwargs) -> response.Response:
+ """
+ Return the project settings as of the provided timestamp.
+ Query params:
+ - at: ISO8601 datetime (required)
+ - scope: optional, one or multiple keys to filter the returned settings
+ """
+ return team_settings_as_of_view(self.get_object().passthrough_team, request)
+
+ @action(methods=["GET"], detail=True, required_scopes=["project:read"], url_path="event_ingestion_restrictions")
+ def event_ingestion_restrictions(self, request, **kwargs):
+ return team_event_ingestion_restrictions_view(self.get_object().passthrough_team, request)
+
@action(
methods=["PATCH"],
detail=True,
diff --git a/posthog/api/shared.py b/posthog/api/shared.py
index d3ba73772341..3517081b8e3a 100644
--- a/posthog/api/shared.py
+++ b/posthog/api/shared.py
@@ -112,12 +112,19 @@ class ProjectBackwardCompatBasicSerializer(serializers.ModelSerializer):
instance: Optional[Project]
+ # Declared explicitly (not a passthrough): Team.project_id is an FK attname the model-field merge can't
+ # resolve, and a Project's own id equals its primary Team's project_id (Project ↔ Team is 1:1).
+ project_id = serializers.IntegerField(
+ source="id", read_only=True, help_text="ID of the project this environment belongs to."
+ )
+
class Meta:
model = Project
fields = (
"id",
"uuid", # Compat with TeamSerializer
"organization",
+ "project_id", # Compat with TeamSerializer
"api_token", # Compat with TeamSerializer
"name",
"completed_snippet_onboarding", # Compat with TeamSerializer
diff --git a/posthog/api/test/test_project.py b/posthog/api/test/test_project.py
index 059b1e555362..d1bfa70dcb4f 100644
--- a/posthog/api/test/test_project.py
+++ b/posthog/api/test/test_project.py
@@ -642,3 +642,75 @@ class TestProjectAPI(team_api_test_factory()): # type: ignore
# Verify changes were made
self.project.refresh_from_db()
self.assertEqual(self.project.name, "New Project Name")
+
+ # --- Parity coverage: fields and actions that previously existed only on /api/environments/ ---
+
+ def test_retrieve_project_includes_environment_parity_fields(self):
+ response = self.client.get(f"/api/projects/{self.project.id}/")
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ data = response.json()
+ # Fields that used to be exposed only by /api/environments/ must now appear on /api/projects/ too
+ for field in [
+ "project_id",
+ "user_access_level",
+ "managed_viewsets",
+ "base_currency",
+ "capture_dead_clicks",
+ "cookieless_server_hash_mode",
+ "default_data_theme",
+ "revenue_analytics_config",
+ "marketing_analytics_config",
+ "customer_analytics_config",
+ "web_analytics_pre_aggregated_tables_enabled",
+ ]:
+ self.assertIn(field, data, f"/api/projects/ response is missing parity field '{field}'")
+ # project_id on a Project equals its own id (Project ↔ Team is 1:1)
+ self.assertEqual(data["project_id"], self.project.id)
+
+ def test_new_passthrough_field_writes_through_to_team(self):
+ self.organization_membership.level = OrganizationMembership.Level.ADMIN
+ self.organization_membership.save()
+
+ response = self.client.patch(
+ f"/api/projects/{self.project.id}/",
+ {"base_currency": "EUR", "capture_dead_clicks": True},
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK, response.json())
+ self.assertEqual(response.json()["base_currency"], "EUR")
+ self.assertEqual(response.json()["capture_dead_clicks"], True)
+
+ self.team.refresh_from_db()
+ self.assertEqual(self.team.base_currency, "EUR")
+ self.assertEqual(self.team.capture_dead_clicks, True)
+
+ def test_customer_analytics_config_writes_through_to_team(self):
+ self.organization_membership.level = OrganizationMembership.Level.ADMIN
+ self.organization_membership.save()
+
+ response = self.client.patch(
+ f"/api/projects/{self.project.id}/",
+ {"customer_analytics_config": {"activity_event": "$pageview"}},
+ format="json",
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK, response.json())
+ self.assertEqual(response.json()["customer_analytics_config"]["activity_event"], "$pageview")
+
+ self.team.refresh_from_db()
+ self.assertEqual(self.team.customer_analytics_config.activity_event, "$pageview")
+
+ def test_settings_as_of_action_available_on_projects(self):
+ # This action previously existed only on /api/environments/ — it must now work on /api/projects/ too.
+ # NOTE: we pass a `scope` filter on purpose. The unscoped snapshot path has a pre-existing bug on the
+ # environments endpoint too — TEAM_CONFIG_FIELDS includes the analytics-config *properties* (model
+ # instances, not JSON-serializable), so an unscoped call 500s on both surfaces. Faithfully replicated
+ # here; fixing it belongs in a separate change since it affects /api/environments/ identically.
+ response = self.client.get(
+ f"/api/projects/{self.project.id}/settings_as_of/?at=2020-01-01T00:00:00Z&scope=timezone"
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK, response.json())
+ self.assertIn("timezone", response.json())
+
+ def test_experiments_config_action_available_on_projects(self):
+ response = self.client.get(f"/api/projects/{self.project.id}/experiments_config/")
+ self.assertEqual(response.status_code, status.HTTP_200_OK, response.json())
+ self.assertIn("default_experiment_stats_method", response.json())
diff --git a/posthog/api/test/test_team_project_differential.py b/posthog/api/test/test_team_project_differential.py
new file mode 100644
index 000000000000..e36f385568f8
--- /dev/null
+++ b/posthog/api/test/test_team_project_differential.py
@@ -0,0 +1,557 @@
+from typing import Any
+
+from posthog.test.base import APIBaseTest
+from unittest.mock import patch
+
+from parameterized import parameterized
+from rest_framework import status
+
+from posthog.api.team import TEAM_CONFIG_FIELDS
+from posthog.models.organization import OrganizationMembership
+from posthog.models.project import Project
+from posthog.models.team.team import Team
+
+from products.dashboards.backend.models.dashboard import Dashboard
+
+# Adversarial differential parity harness.
+#
+# /api/environments/{id}/ (Team) and /api/projects/{id}/ (Project) address the SAME underlying entity because
+# Project ↔ Team is 1:1 and share the same numeric id. This suite makes real HTTP calls to BOTH and asserts the
+# responses (and resulting DB state for writes) are identical. Any divergence fails — there is no "probably fine".
+#
+# Fields a client legitimately sees on /api/projects/ but not /api/environments/ — both are project-only on
+# master (product_description is a Project concept; is_pending_deletion was added project-side). Extra fields on
+# the redirect target are safe. Everything else must match exactly.
+PROJECT_ONLY_DETAIL_FIELDS = {"product_description", "is_pending_deletion"}
+
+# Read-only fields whose VALUE legitimately differs but is semantically equivalent, so byte-equality is not
+# required (only presence + non-null). Currently just `created_at`: /api/environments/ returns Team.created_at
+# and /api/projects/ returns Project.created_at — two rows created milliseconds apart in the same transaction.
+# This is pre-existing /api/projects/ behavior (created_at is not a passthrough field) and is read-only, so it
+# cannot break a client. Everything else must be byte-identical.
+READ_ONLY_NEAR_EQUIVALENT_FIELDS = {"created_at"}
+
+
+class DifferentialParityBase(APIBaseTest):
+ # Allow replica + persons DB queries (personal API key auth, group types) so every code path runs locally.
+ # "__all__" is Django's documented sentinel for "every configured database"; the base type is set[str].
+ databases = "__all__" # type: ignore[assignment]
+
+ def setUp(self):
+ super().setUp()
+ self.organization_membership.level = OrganizationMembership.Level.ADMIN
+ self.organization_membership.save()
+ # Sanity: the two endpoints must address the same entity.
+ assert self.project.id == self.team.id, "Project/Team id mismatch breaks the differential assumption"
+
+ def env_url(self, suffix: str = "") -> str:
+ return f"/api/environments/{self.team.id}/{suffix}"
+
+ def project_url(self, suffix: str = "") -> str:
+ return f"/api/projects/{self.project.id}/{suffix}"
+
+ def assert_bodies_equal(self, env_body: Any, proj_body: Any, *, allow_project_only: set[str] | None = None) -> None:
+ allow_project_only = allow_project_only or set()
+ if isinstance(env_body, dict) and isinstance(proj_body, dict):
+ env_keys, proj_keys = set(env_body), set(proj_body)
+ self.assertEqual(
+ env_keys - proj_keys, set(), f"keys only on /api/environments/: {sorted(env_keys - proj_keys)}"
+ )
+ self.assertEqual(
+ proj_keys - env_keys,
+ allow_project_only,
+ f"unexpected keys only on /api/projects/: {sorted((proj_keys - env_keys) - allow_project_only)}",
+ )
+ for key in env_keys:
+ if key in READ_ONLY_NEAR_EQUIVALENT_FIELDS:
+ # Value may differ (different row), but both must be present and non-null.
+ self.assertIsNotNone(env_body[key], f"env '{key}' unexpectedly null")
+ self.assertIsNotNone(proj_body[key], f"project '{key}' unexpectedly null")
+ continue
+ self.assertEqual(
+ env_body[key],
+ proj_body[key],
+ f"field '{key}' diverges: env={env_body[key]!r} project={proj_body[key]!r}",
+ )
+ else:
+ self.assertEqual(env_body, proj_body)
+
+
+class TestReadParity(DifferentialParityBase):
+ def test_get_detail_parity(self):
+ env = self.client.get(self.env_url())
+ proj = self.client.get(self.project_url())
+ self.assertEqual(env.status_code, status.HTTP_200_OK, env.json())
+ self.assertEqual(proj.status_code, status.HTTP_200_OK, proj.json())
+ self.assert_bodies_equal(env.json(), proj.json(), allow_project_only=PROJECT_ONLY_DETAIL_FIELDS)
+
+ def test_list_parity(self):
+ env = self.client.get("/api/environments/")
+ proj = self.client.get("/api/projects/")
+ self.assertEqual(env.status_code, status.HTTP_200_OK, env.json())
+ self.assertEqual(proj.status_code, status.HTTP_200_OK, proj.json())
+ env_results = {r["id"]: r for r in env.json()["results"]}
+ proj_results = {r["id"]: r for r in proj.json()["results"]}
+ self.assertEqual(set(env_results), set(proj_results), "different ids listed")
+ for team_id, env_row in env_results.items():
+ self.assert_bodies_equal(env_row, proj_results[team_id])
+
+ def test_is_generating_demo_data_parity(self):
+ env = self.client.get(self.env_url("is_generating_demo_data/"))
+ proj = self.client.get(self.project_url("is_generating_demo_data/"))
+ self.assertEqual(env.status_code, proj.status_code)
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_activity_parity(self):
+ env = self.client.get(self.env_url("activity/"))
+ proj = self.client.get(self.project_url("activity/"))
+ self.assertEqual(env.status_code, proj.status_code)
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_default_release_conditions_get_parity(self):
+ env = self.client.get(self.env_url("default_release_conditions/"))
+ proj = self.client.get(self.project_url("default_release_conditions/"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_experiments_config_get_parity(self):
+ env = self.client.get(self.env_url("experiments_config/"))
+ proj = self.client.get(self.project_url("experiments_config/"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_logs_config_get_parity(self):
+ env = self.client.get(self.env_url("logs_config/"))
+ proj = self.client.get(self.project_url("logs_config/"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_default_evaluation_contexts_get_parity(self):
+ env = self.client.get(self.env_url("default_evaluation_contexts/"))
+ proj = self.client.get(self.project_url("default_evaluation_contexts/"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_event_ingestion_restrictions_get_parity(self):
+ env = self.client.get(self.env_url("event_ingestion_restrictions/"))
+ proj = self.client.get(self.project_url("event_ingestion_restrictions/"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+ def test_settings_as_of_scoped_parity(self):
+ qs = "?at=2020-01-01T00:00:00Z&scope=timezone&scope=session_recording_opt_in"
+ env = self.client.get(self.env_url(f"settings_as_of/{qs}"))
+ proj = self.client.get(self.project_url(f"settings_as_of/{qs}"))
+ self.assertEqual(env.status_code, proj.status_code, (env.json(), proj.json()))
+ self.assert_bodies_equal(env.json(), proj.json())
+
+
+# A representative valid value for every config field. We deliberately require an entry for EVERY field in
+# TEAM_CONFIG_FIELDS (see test below) so a newly added config field cannot slip through untested. The value
+# need not be "correct" — if the input is rejected, the test simply asserts both endpoints reject it identically.
+FIELD_VALUES: dict[str, Any] = {
+ "app_urls": ["https://example.com"],
+ "anonymize_ips": True,
+ "completed_snippet_onboarding": True,
+ "test_account_filters": [],
+ "test_account_filters_default_checked": True,
+ "path_cleaning_filters": [],
+ "is_demo": True,
+ "timezone": "America/New_York",
+ "data_attributes": ["data-attr"],
+ "person_display_name_properties": ["email"],
+ "correlation_config": {"excluded_person_property_names": ["foo"]},
+ "autocapture_opt_out": True,
+ "autocapture_exceptions_opt_in": True,
+ "autocapture_web_vitals_opt_in": True,
+ "autocapture_web_vitals_allowed_metrics": ["FCP"],
+ "autocapture_exceptions_errors_to_ignore": ["err"],
+ "capture_console_log_opt_in": True,
+ "logs_settings": {"retention_days": 30},
+ "capture_performance_opt_in": True,
+ "session_recording_opt_in": True,
+ "session_recording_sample_rate": "0.50",
+ "session_recording_minimum_duration_milliseconds": 1000,
+ "session_recording_linked_flag": {"id": 1, "key": "flag"},
+ "session_recording_network_payload_capture_config": {"recordHeaders": True},
+ "session_recording_masking_config": {"maskAllInputs": True},
+ "session_recording_url_trigger_config": [],
+ "session_recording_url_blocklist_config": [],
+ "session_recording_event_trigger_config": [],
+ "session_recording_trigger_match_type_config": "all",
+ "session_recording_trigger_groups": {"version": 2, "groups": []},
+ "session_recording_retention_period": "30d",
+ "session_replay_config": {"record_canvas": True},
+ "survey_config": {"appearance": {"backgroundColor": "#ffffff"}},
+ "week_start_day": 1,
+ "primary_dashboard": "__PER_TWIN_DASHBOARD__", # special-cased: a dashboard belonging to each twin
+ "live_events_columns": ["event"],
+ "recording_domains": ["https://example.com"],
+ "cookieless_server_hash_mode": 1,
+ "human_friendly_comparison_periods": True,
+ "inject_web_apps": True,
+ "extra_settings": {"foo": "bar"},
+ "modifiers": {"bounceRateDurationSeconds": 30},
+ "has_completed_onboarding_for": {"1": True},
+ "surveys_opt_in": True,
+ "heatmaps_opt_in": True,
+ "flags_persistence_default": True,
+ "feature_flag_confirmation_enabled": True,
+ "feature_flag_confirmation_message": "Are you sure?",
+ "default_evaluation_contexts_enabled": True,
+ "require_evaluation_contexts": True,
+ "capture_dead_clicks": True,
+ "default_data_theme": 1,
+ "revenue_analytics_config": {"filter_test_accounts": True},
+ "marketing_analytics_config": {"attribution_window_days": 14},
+ "customer_analytics_config": {"activity_event": "$pageview"},
+ "workflows_config": {"capture_workflows_engagement_events": True},
+ "onboarding_tasks": {"task_x": "completed"},
+ "base_currency": "EUR",
+ "web_analytics_pre_aggregated_tables_enabled": True,
+ "receive_org_level_activity_logs": True,
+ "business_model": "B2B",
+ "conversations_enabled": True,
+ "conversations_settings": {"widget_greeting_text": "hi"},
+ "proactive_tasks_enabled": True,
+}
+
+
+class TestWriteParity(DifferentialParityBase):
+ def _make_twin(self) -> tuple[Project, Team]:
+ project, team = Project.objects.create_with_team(organization=self.organization, initiating_user=self.user)
+ return project, team
+
+ def test_every_config_field_has_a_test_value(self):
+ # Completeness guard: every writable config field MUST be exercised by the matrix below.
+ missing = set(TEAM_CONFIG_FIELDS) - set(FIELD_VALUES)
+ self.assertEqual(missing, set(), f"Config fields with no differential test value: {sorted(missing)}")
+
+ @parameterized.expand(sorted(TEAM_CONFIG_FIELDS))
+ def test_write_field_parity(self, field: str):
+ project_a, team_a = self._make_twin()
+ project_b, team_b = self._make_twin()
+
+ value = FIELD_VALUES[field]
+ if field == "primary_dashboard":
+ dash_a = Dashboard.objects.create(team=team_a, name="d")
+ dash_b = Dashboard.objects.create(team=team_b, name="d")
+ body_a: dict[str, Any] = {field: dash_a.id}
+ body_b: dict[str, Any] = {field: dash_b.id}
+ else:
+ body_a = {field: value}
+ body_b = {field: value}
+
+ resp_a = self.client.patch(f"/api/environments/{team_a.id}/", body_a, format="json")
+ resp_b = self.client.patch(f"/api/projects/{project_b.id}/", body_b, format="json")
+
+ # 1. Accept/reject parity: both endpoints must agree on the HTTP status for the same input.
+ self.assertEqual(
+ resp_a.status_code,
+ resp_b.status_code,
+ f"status diverges for '{field}': env={resp_a.status_code} ({resp_a.json()}) "
+ f"project={resp_b.status_code} ({resp_b.json()})",
+ )
+
+ if resp_a.status_code == status.HTTP_200_OK:
+ # 2. Round-trip parity: reading the field back must yield the same result via both routes.
+ get_a = self.client.get(f"/api/environments/{team_a.id}/").json()
+ get_b = self.client.get(f"/api/projects/{project_b.id}/").json()
+ if field == "primary_dashboard":
+ self.assertEqual(get_a[field], dash_a.id)
+ self.assertEqual(get_b[field], dash_b.id)
+ else:
+ self.assertEqual(
+ get_a[field],
+ get_b[field],
+ f"round-trip value diverges for '{field}': env={get_a[field]!r} project={get_b[field]!r}",
+ )
+ else:
+ # 3. Error parity: same rejection body for the same bad input.
+ self.assertEqual(
+ resp_a.json(),
+ resp_b.json(),
+ f"error body diverges for '{field}'",
+ )
+
+
+# Identity/random-per-row fields that legitimately differ between two distinct twin entities. Excluded when
+# comparing team-shaped action responses; everything else must match.
+TEAM_SHAPED_VOLATILE_FIELDS = {
+ "id",
+ "project_id",
+ "uuid",
+ "api_token",
+ "secret_api_token",
+ "secret_api_token_backup",
+ "live_events_token",
+ "created_at",
+ "updated_at",
+ "conversations_settings", # holds a randomly generated widget token
+ "test_account_filters", # default value references each twin's own auto-created "internal users" cohort id
+ "primary_dashboard", # each twin auto-creates its own default primary dashboard (distinct row id)
+ "product_intents", # list of rows with per-row timestamps; compared structurally in the intent tests instead
+ "product_description", # project-only
+ "is_pending_deletion", # project-only (added project-side on master)
+}
+
+
+def _normalize_intents(intents: list[dict]) -> list[dict]:
+ """Drop per-row timestamps so two twins' product_intents can be compared structurally."""
+ keep = {"product_type"}
+ return sorted(
+ (
+ {**{k: v for k, v in i.items() if k in keep}, "onboarded": i.get("onboarding_completed_at") is not None}
+ for i in intents
+ ),
+ key=lambda i: i["product_type"],
+ )
+
+
+# Write-action parity cases: (name, http_method, url_suffix, body, expected_status, compare_mode).
+# compare_mode: "team_shaped" → response is the serialized team (compare minus volatile fields);
+# "team_shaped_intents" → also compare product_intents structurally; "full_body" → exact body match.
+# Adding a new environment action that mirrors onto projects is a single row here. The only action NOT in this
+# table is default_evaluation_contexts, which is an irreducible POST-then-DELETE sequence (separate test below).
+WRITE_ACTION_CASES = [
+ ("reset_token", "patch", "reset_token/", None, status.HTTP_200_OK, "team_shaped"),
+ ("rotate_secret_token", "patch", "rotate_secret_token/", None, status.HTTP_200_OK, "team_shaped"),
+ ("delete_secret_token_backup", "patch", "delete_secret_token_backup/", None, status.HTTP_200_OK, "team_shaped"),
+ (
+ "generate_conversations_public_token",
+ "post",
+ "generate_conversations_public_token/",
+ None,
+ status.HTTP_200_OK,
+ "team_shaped",
+ ),
+ (
+ "add_product_intent",
+ "patch",
+ "add_product_intent/",
+ {"product_type": "product_analytics", "metadata": {}},
+ status.HTTP_201_CREATED,
+ "team_shaped_intents",
+ ),
+ (
+ "complete_product_onboarding",
+ "patch",
+ "complete_product_onboarding/",
+ {"product_type": "product_analytics", "metadata": {}},
+ status.HTTP_200_OK,
+ "team_shaped_intents",
+ ),
+ (
+ "logs_config",
+ "patch",
+ "logs_config/",
+ {"logs_distinct_id_attribute_key": "myDistinctId"},
+ status.HTTP_200_OK,
+ "full_body",
+ ),
+ (
+ "default_release_conditions",
+ "put",
+ "default_release_conditions/",
+ {"enabled": True, "default_groups": [{"properties": [], "rollout_percentage": 50}]},
+ status.HTTP_200_OK,
+ "full_body",
+ ),
+ (
+ "experiments_config",
+ "patch",
+ "experiments_config/",
+ {"default_experiment_stats_method": "bayesian"},
+ status.HTTP_200_OK,
+ "full_body",
+ ),
+]
+
+
+class TestWriteActionParity(DifferentialParityBase):
+ def _make_twin(self) -> tuple[Project, Team]:
+ project, team = Project.objects.create_with_team(organization=self.organization, initiating_user=self.user)
+ return project, team
+
+ def _assert_team_shaped_parity(self, body_a: dict, body_b: dict) -> None:
+ a = {k: v for k, v in body_a.items() if k not in TEAM_SHAPED_VOLATILE_FIELDS}
+ b = {k: v for k, v in body_b.items() if k not in TEAM_SHAPED_VOLATILE_FIELDS}
+ self.assertEqual(set(a), set(b), "team-shaped action response key sets diverge")
+ for key in a:
+ self.assertEqual(
+ a[key], b[key], f"action response field '{key}' diverges: env={a[key]!r} project={b[key]!r}"
+ )
+
+ def _run_twin_action(self, method: str, suffix: str, body: dict | None = None) -> tuple[Any, Any]:
+ project_a, team_a = self._make_twin()
+ project_b, team_b = self._make_twin()
+ call = getattr(self.client, method)
+ kwargs = {"format": "json"} if body is not None else {}
+ resp_a = call(f"/api/environments/{team_a.id}/{suffix}", body or None, **kwargs)
+ resp_b = call(f"/api/projects/{project_b.id}/{suffix}", body or None, **kwargs)
+ self.assertEqual(
+ resp_a.status_code,
+ resp_b.status_code,
+ f"status diverges for {method.upper()} {suffix}: env={resp_a.status_code} project={resp_b.status_code} "
+ f"({resp_a.content!r} vs {resp_b.content!r})",
+ )
+ return resp_a, resp_b
+
+ @parameterized.expand(WRITE_ACTION_CASES)
+ def test_write_action_parity(self, name, method, suffix, body, expected_status, compare):
+ resp_a, resp_b = self._run_twin_action(method, suffix, body)
+ self.assertEqual(resp_a.status_code, expected_status, resp_a.json())
+ if compare == "full_body":
+ self.assertEqual(resp_a.json(), resp_b.json())
+ return
+ self._assert_team_shaped_parity(resp_a.json(), resp_b.json())
+ if compare == "team_shaped_intents":
+ self.assertEqual(
+ _normalize_intents(resp_a.json()["product_intents"]),
+ _normalize_intents(resp_b.json()["product_intents"]),
+ )
+
+ def test_default_evaluation_contexts_post_and_delete_parity(self):
+ # POST returns a per-row id (differs between twins); compare everything else.
+ post_body = {"context_name": "production"}
+ resp_a, resp_b = self._run_twin_action("post", "default_evaluation_contexts/", post_body)
+ self.assertEqual(resp_a.status_code, status.HTTP_200_OK, resp_a.json())
+ a = {k: v for k, v in resp_a.json().items() if k != "id"}
+ b = {k: v for k, v in resp_b.json().items() if k != "id"}
+ self.assertEqual(a, b)
+
+ # DELETE on fresh twins for status + body parity.
+ del_body = {"context_name": "production"}
+ resp_a2, resp_b2 = self._run_twin_action("delete", "default_evaluation_contexts/", del_body)
+ self.assertEqual(resp_a2.json(), resp_b2.json())
+
+
+# NOTE on personal-API-key scope parity: both viewsets share identical scope logic
+# (dangerously_get_required_scopes is mirrored, and APIScopePermission is the same), and the existing
+# rewrite-client factory suite (test_project.py vs test_team.py) exercises read-only/write key behavior against
+# BOTH surfaces on CI. It is intentionally NOT duplicated here: personal-API-key auth reads the `replica`
+# connection, which cannot see a key written inside the test's transaction on a standard TestCase, so any such
+# assertion is unrunnable locally regardless of endpoint. That dimension is covered on CI by the factory suite.
+
+
+class TestLifecycleMethodDivergences(DifferentialParityBase):
+ """CREATE and DELETE are the ONLY methods that intentionally differ between the two surfaces. Both
+ differences pre-date this change and are deliberate. These tests pin the current behavior so it cannot
+ change silently, and so the env→project redirect decision is made with full awareness of them."""
+
+ def _make_twin(self) -> tuple[Project, Team]:
+ project, team = Project.objects.create_with_team(organization=self.organization, initiating_user=self.user)
+ return project, team
+
+ def test_create_divergence_env_blocked_project_allowed(self):
+ # Top-level environment creation is disabled (multiple environments per project were rolled back), so no
+ # client can currently create via /api/environments/. /api/projects/ create works. The redirect therefore
+ # does not need to preserve env-create — there is nothing to preserve.
+ from posthog.constants import AvailableFeature
+
+ self.organization.available_product_features = [
+ {"key": AvailableFeature.ORGANIZATIONS_PROJECTS, "name": "Projects", "limit": None}
+ ]
+ self.organization.save()
+ env = self.client.post("/api/environments/", {"name": "x"}, format="json")
+ proj = self.client.post("/api/projects/", {"name": "x"}, format="json")
+ self.assertEqual(env.status_code, status.HTTP_400_BAD_REQUEST, env.json())
+ self.assertEqual(proj.status_code, status.HTTP_201_CREATED, proj.json())
+
+ @patch("posthog.api.project.delete_project_data_and_notify_task")
+ @patch("posthog.tasks.tasks.delete_project_data_and_notify_task")
+ def test_delete_common_case_parity_but_project_is_a_superset(self, mock_team_task, mock_project_task):
+ project_a, team_a = self._make_twin()
+ project_b, team_b = self._make_twin()
+
+ env = self.client.delete(f"/api/environments/{team_a.id}/")
+ proj = self.client.delete(f"/api/projects/{project_b.id}/")
+
+ # Common case (non-cloud, not the last project): both succeed with 204.
+ self.assertEqual(env.status_code, status.HTTP_204_NO_CONTENT, env.content)
+ self.assertEqual(proj.status_code, status.HTTP_204_NO_CONTENT, proj.content)
+
+ # INTENTIONAL DIVERGENCE (pinned): env deletes a single team (project_id=None); project cascades the
+ # whole project (project_id set + all child team_ids) AND additionally enforces a last-project active-
+ # subscription guard. In the 1:1 world the data actually removed is equivalent, but post-redirect an
+ # env DELETE would inherit the project guard/cascade. This requires explicit product sign-off.
+ env_kwargs = mock_team_task.delay.call_args.kwargs
+ proj_kwargs = mock_project_task.delay.call_args.kwargs
+ self.assertIsNone(env_kwargs["project_id"])
+ self.assertEqual(proj_kwargs["project_id"], project_b.id)
+ self.assertEqual(env_kwargs["team_ids"], [team_a.id])
+ self.assertEqual(proj_kwargs["team_ids"], [team_b.id])
+
+
+class TestPermissionParity(DifferentialParityBase):
+ """Permission parity across membership levels.
+
+ The rest of the suite runs as ADMIN. These tests exercise the MEMBER path — where Veria flagged a possible
+ divergence (admin-only config fields writable by non-admins via /api/projects/). For the same membership
+ level and the same field, both endpoints must return the SAME status: admin-only fields rejected, member
+ fields accepted. A mismatch here is a real access-control divergence, not a cosmetic one.
+ """
+
+ def _make_twin(self) -> tuple[Project, Team]:
+ project, team = Project.objects.create_with_team(organization=self.organization, initiating_user=self.user)
+ return project, team
+
+ def _set_level(self, level: OrganizationMembership.Level) -> None:
+ self.organization_membership.level = level
+ self.organization_membership.save()
+
+ @parameterized.expand(
+ [
+ # (name, field, value, is_admin_only)
+ ("admin__timezone", "timezone", "America/New_York", True),
+ ("admin__require_evaluation_contexts", "require_evaluation_contexts", True, True),
+ ("admin__feature_flag_confirmation_enabled", "feature_flag_confirmation_enabled", True, True),
+ ("admin__base_currency", "base_currency", "EUR", True),
+ ("admin__capture_dead_clicks", "capture_dead_clicks", True, True),
+ ("member__session_recording_opt_in", "session_recording_opt_in", True, False),
+ ("member__surveys_opt_in", "surveys_opt_in", True, False),
+ ]
+ )
+ def test_member_config_write_permission_parity(self, _name, field, value, is_admin_only):
+ self._set_level(OrganizationMembership.Level.MEMBER)
+ _, team_a = self._make_twin()
+ project_b, _ = self._make_twin()
+
+ resp_a = self.client.patch(f"/api/environments/{team_a.id}/", {field: value}, format="json")
+ resp_b = self.client.patch(f"/api/projects/{project_b.id}/", {field: value}, format="json")
+
+ # The core assertion: both endpoints must agree for a member writing this field.
+ self.assertEqual(
+ resp_a.status_code,
+ resp_b.status_code,
+ f"member write of '{field}' diverges: env={resp_a.status_code} ({resp_a.content!r}) "
+ f"project={resp_b.status_code} ({resp_b.content!r})",
+ )
+ if is_admin_only:
+ self.assertEqual(resp_a.status_code, status.HTTP_403_FORBIDDEN, resp_a.content)
+ else:
+ self.assertEqual(resp_a.status_code, status.HTTP_200_OK, resp_a.content)
+
+ @parameterized.expand(
+ [
+ # member hitting each ported action — status must match across endpoints regardless of allow/deny
+ ("default_release_conditions", "get", "default_release_conditions/"),
+ ("experiments_config", "get", "experiments_config/"),
+ ("default_evaluation_contexts", "get", "default_evaluation_contexts/"),
+ ("settings_as_of", "get", "settings_as_of/?at=2020-01-01T00:00:00Z&scope=timezone"),
+ ("event_ingestion_restrictions", "get", "event_ingestion_restrictions/"),
+ ("logs_config", "get", "logs_config/"),
+ ]
+ )
+ def test_member_action_permission_parity(self, _name, method, suffix):
+ self._set_level(OrganizationMembership.Level.MEMBER)
+ _, team_a = self._make_twin()
+ project_b, _ = self._make_twin()
+ call = getattr(self.client, method)
+ resp_a = call(f"/api/environments/{team_a.id}/{suffix}")
+ resp_b = call(f"/api/projects/{project_b.id}/{suffix}")
+ self.assertEqual(
+ resp_a.status_code,
+ resp_b.status_code,
+ f"member action '{suffix}' diverges: env={resp_a.status_code} project={resp_b.status_code}",
+ )
diff --git a/posthog/api/test/test_team_project_parity.py b/posthog/api/test/test_team_project_parity.py
new file mode 100644
index 000000000000..1f30bcdb794c
--- /dev/null
+++ b/posthog/api/test/test_team_project_parity.py
@@ -0,0 +1,101 @@
+from posthog.test.base import BaseTest
+
+from rest_framework import viewsets
+
+from posthog.api.project import ProjectBackwardCompatSerializer, ProjectViewSet
+from posthog.api.shared import ProjectBackwardCompatBasicSerializer, TeamBasicSerializer
+from posthog.api.team import TeamSerializer, TeamViewSet
+
+# /api/projects/ (Project model) is the canonical surface; /api/environments/ (Team model) is the
+# backward-compat alias we intend to deprecate and permanently redirect onto /api/projects/. For that
+# redirect to be safe, the project surface must be a SUPERSET of the environment surface: every field
+# and action a client can reach on /api/environments/ must also exist on /api/projects/.
+#
+# These allowlists capture the only intentional differences. Anything outside them is drift — most
+# likely a field or action added to the Team/environment side without mirroring it onto projects — and
+# fails this test loudly so it gets fixed before it reaches clients.
+
+# Fields that legitimately exist only on the project surface (a genuine Project concept, not a Team field).
+# is_pending_deletion was added project-side on master; a project-only field is fine for the redirect target.
+PROJECT_ONLY_SERIALIZER_FIELDS = {"product_description", "is_pending_deletion"}
+
+# Actions that legitimately exist only on the project surface (operate on the Project, not the Team).
+PROJECT_ONLY_ACTIONS = {"change_organization"}
+
+
+def _serializer_field_names(serializer_class) -> set[str]:
+ return set(serializer_class().fields.keys())
+
+
+def _extra_action_names(viewset_class: type[viewsets.GenericViewSet]) -> set[str]:
+ return {action.__name__ for action in viewset_class.get_extra_actions()}
+
+
+class TestTeamProjectParity(BaseTest):
+ def test_detail_serializer_is_a_superset_of_team_serializer(self):
+ team_fields = _serializer_field_names(TeamSerializer)
+ project_fields = _serializer_field_names(ProjectBackwardCompatSerializer)
+
+ missing_on_project = team_fields - project_fields
+ self.assertEqual(
+ missing_on_project,
+ set(),
+ f"/api/environments/ exposes fields that /api/projects/ does not: {sorted(missing_on_project)}. "
+ f"Mirror them onto ProjectBackwardCompatSerializer (or the redirect to /api/projects/ would drop them).",
+ )
+
+ project_only = project_fields - team_fields
+ self.assertEqual(
+ project_only,
+ PROJECT_ONLY_SERIALIZER_FIELDS,
+ f"Unexpected project-only serializer fields: {sorted(project_only - PROJECT_ONLY_SERIALIZER_FIELDS)}. "
+ f"If intentional, add them to PROJECT_ONLY_SERIALIZER_FIELDS.",
+ )
+
+ def test_list_serializers_are_identical(self):
+ team_basic_fields = _serializer_field_names(TeamBasicSerializer)
+ project_basic_fields = _serializer_field_names(ProjectBackwardCompatBasicSerializer)
+ self.assertEqual(
+ team_basic_fields,
+ project_basic_fields,
+ "List responses diverge between /api/environments/ and /api/projects/. "
+ f"Only on environments: {sorted(team_basic_fields - project_basic_fields)}; "
+ f"only on projects: {sorted(project_basic_fields - team_basic_fields)}.",
+ )
+
+ def test_viewset_actions_are_a_superset_of_team_viewset(self):
+ team_actions = _extra_action_names(TeamViewSet)
+ project_actions = _extra_action_names(ProjectViewSet)
+
+ missing_on_project = team_actions - project_actions
+ self.assertEqual(
+ missing_on_project,
+ set(),
+ f"/api/environments/ exposes actions that /api/projects/ does not: {sorted(missing_on_project)}. "
+ f"Mirror them onto ProjectViewSet (or the redirect to /api/projects/ would 404 them).",
+ )
+
+ project_only = project_actions - team_actions
+ self.assertEqual(
+ project_only,
+ PROJECT_ONLY_ACTIONS,
+ f"Unexpected project-only actions: {sorted(project_only - PROJECT_ONLY_ACTIONS)}. "
+ f"If intentional, add them to PROJECT_ONLY_ACTIONS.",
+ )
+
+ def test_shared_actions_expose_the_same_http_methods(self):
+ # For every action present on both viewsets, the allowed HTTP verbs must match — a GET-only action
+ # on one side and GET+PATCH on the other would silently drop writes after the redirect.
+ team_actions = {a.__name__: a for a in TeamViewSet.get_extra_actions()}
+ project_actions = {a.__name__: a for a in ProjectViewSet.get_extra_actions()}
+
+ mismatches: dict[str, tuple] = {}
+ for name in team_actions.keys() & project_actions.keys():
+ team_methods = {m.lower() for m in getattr(team_actions[name], "mapping", {})}
+ project_methods = {m.lower() for m in getattr(project_actions[name], "mapping", {})}
+ if team_methods != project_methods:
+ mismatches[name] = (sorted(team_methods), sorted(project_methods))
+
+ self.assertEqual(
+ mismatches, {}, f"Shared actions expose different HTTP methods (team vs project): {mismatches}"
+ )
diff --git a/services/mcp/definitions/core.yaml b/services/mcp/definitions/core.yaml
index 6295441ad49e..ab67b51e9018 100644
--- a/services/mcp/definitions/core.yaml
+++ b/services/mcp/definitions/core.yaml
@@ -374,6 +374,30 @@ tools:
oauth-applications-list:
operation: oauth_applications_list
enabled: false
+ organizations-projects-default-evaluation-contexts-create:
+ operation: organizations_projects_default_evaluation_contexts_create
+ enabled: false
+ organizations-projects-default-evaluation-contexts-destroy:
+ operation: organizations_projects_default_evaluation_contexts_destroy
+ enabled: false
+ organizations-projects-default-evaluation-contexts-retrieve:
+ operation: organizations_projects_default_evaluation_contexts_retrieve
+ enabled: false
+ organizations-projects-default-release-conditions-retrieve:
+ operation: organizations_projects_default_release_conditions_retrieve
+ enabled: false
+ organizations-projects-default-release-conditions-update:
+ operation: organizations_projects_default_release_conditions_update
+ enabled: false
+ organizations-projects-event-ingestion-restrictions-retrieve:
+ operation: organizations_projects_event_ingestion_restrictions_retrieve
+ enabled: false
+ organizations-projects-experiments-config-partial-update:
+ operation: organizations_projects_experiments_config_partial_update
+ enabled: false
+ organizations-projects-experiments-config-retrieve:
+ operation: organizations_projects_experiments_config_retrieve
+ enabled: false
organizations-projects-logs-config-partial-update:
operation: organizations_projects_logs_config_partial_update
enabled: false
@@ -383,6 +407,9 @@ tools:
organizations-projects-promoted-product-intent-retrieve:
operation: organizations_projects_promoted_product_intent_retrieve
enabled: false
+ organizations-projects-settings-as-of-retrieve:
+ operation: organizations_projects_settings_as_of_retrieve
+ enabled: false
persisted-folder-create:
operation: persisted_folder_create
enabled: false
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 7c6d3dc949c7..eb981fe043d1 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -25756,6 +25756,8 @@ export namespace Schemas {
readonly id: number;
readonly uuid: string;
readonly organization: string;
+ /** ID of the project this environment belongs to. */
+ readonly project_id: number;
readonly api_token: string;
readonly name: string;
readonly completed_snippet_onboarding: boolean;
@@ -31777,6 +31779,8 @@ export namespace Schemas {
updated_at?: string;
};
+ export type PatchedProjectBackwardCompatManagedViewsets = {[key: string]: boolean};
+
/**
* * `30d` - 30 Days
* * `90d` - 90 Days
@@ -31805,6 +31809,50 @@ export namespace Schemas {
Number1: 1,
} as const;
+ export interface TeamRevenueAnalyticsConfig {
+ base_currency?: BaseCurrencyEnum;
+ events?: unknown;
+ goals?: unknown;
+ filter_test_accounts?: boolean;
+ }
+
+ export interface TeamMarketingAnalyticsConfig {
+ sources_map?: unknown;
+ conversion_goals?: unknown;
+ /**
+ * @minimum 1
+ * @maximum 90
+ */
+ attribution_window_days?: number;
+ attribution_mode?: AttributionModeEnum;
+ campaign_name_mappings?: unknown;
+ custom_source_mappings?: unknown;
+ campaign_field_preferences?: unknown;
+ }
+
+ export interface TeamCustomerAnalyticsConfig {
+ /** Event used as the activity signal (DAU/WAU/MAU). */
+ activity_event?: unknown;
+ /** Event used to count signup pageviews on dashboards. */
+ signup_pageview_event?: unknown;
+ /** Event used to count signups on dashboards. */
+ signup_event?: unknown;
+ /** Event used to count subscriptions on dashboards. */
+ subscription_event?: unknown;
+ /** Event used to count payments on dashboards. */
+ payment_event?: unknown;
+ /**
+ * Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.
+ * @nullable
+ */
+ account_group_type_index?: number | null;
+ }
+
+ export interface TeamWorkflowsConfig {
+ /** When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_*) alongside the existing workflow metrics. */
+ capture_workflows_engagement_events?: boolean;
+ }
+
/**
* Mixin for serializers to add user access control fields
*/
@@ -32593,6 +32641,50 @@ export namespace Schemas {
* @nullable
*/
readonly is_pending_deletion?: boolean | null;
+ /** ID of the project this environment belongs to. */
+ readonly project_id?: number;
+ /**
+ * The effective access level the user has for this object
+ * @nullable
+ */
+ readonly user_access_level?: string | null;
+ readonly managed_viewsets?: PatchedProjectBackwardCompatManagedViewsets;
+ revenue_analytics_config?: TeamRevenueAnalyticsConfig;
+ marketing_analytics_config?: TeamMarketingAnalyticsConfig;
+ customer_analytics_config?: TeamCustomerAnalyticsConfig;
+ workflows_config?: TeamWorkflowsConfig;
+ base_currency?: BaseCurrencyEnum;
+ /**
+ * Enables capturing clicks that had no effect (rage-click detection).
+ * @nullable
+ */
+ capture_dead_clicks?: boolean | null;
+ cookieless_server_hash_mode?: CookielessServerHashModeEnum | null;
+ /** @nullable */
+ human_friendly_comparison_periods?: boolean | null;
+ /** @nullable */
+ feature_flag_confirmation_enabled?: boolean | null;
+ /** @nullable */
+ feature_flag_confirmation_message?: string | null;
+ /**
+ * Whether to automatically apply default evaluation contexts to new feature flags
+ * @nullable
+ */
+ default_evaluation_contexts_enabled?: boolean | null;
+ /**
+ * Whether to require at least one evaluation context tag when creating new feature flags
+ * @nullable
+ */
+ require_evaluation_contexts?: boolean | null;
+ /**
+ * @minimum -2147483648
+ * @maximum 2147483647
+ * @nullable
+ */
+ default_data_theme?: number | null;
+ onboarding_tasks?: unknown;
+ /** @nullable */
+ web_analytics_pre_aggregated_tables_enabled?: boolean | null;
}
export interface PatchedProjectSecretAPIKey {
@@ -34057,50 +34149,6 @@ export namespace Schemas {
export type PatchedTeamManagedViewsets = {[key: string]: boolean};
- export interface TeamRevenueAnalyticsConfig {
- base_currency?: BaseCurrencyEnum;
- events?: unknown;
- goals?: unknown;
- filter_test_accounts?: boolean;
- }
-
- export interface TeamMarketingAnalyticsConfig {
- sources_map?: unknown;
- conversion_goals?: unknown;
- /**
- * @minimum 1
- * @maximum 90
- */
- attribution_window_days?: number;
- attribution_mode?: AttributionModeEnum;
- campaign_name_mappings?: unknown;
- custom_source_mappings?: unknown;
- campaign_field_preferences?: unknown;
- }
-
- export interface TeamCustomerAnalyticsConfig {
- /** Event used as the activity signal (DAU/WAU/MAU). */
- activity_event?: unknown;
- /** Event used to count signup pageviews on dashboards. */
- signup_pageview_event?: unknown;
- /** Event used to count signups on dashboards. */
- signup_event?: unknown;
- /** Event used to count subscriptions on dashboards. */
- subscription_event?: unknown;
- /** Event used to count payments on dashboards. */
- payment_event?: unknown;
- /**
- * Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.
- * @nullable
- */
- account_group_type_index?: number | null;
- }
-
- export interface TeamWorkflowsConfig {
- /** When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_*) alongside the existing workflow metrics. */
- capture_workflows_engagement_events?: boolean;
- }
-
export interface PatchedTeam {
readonly id?: number;
readonly uuid?: string;
@@ -35018,6 +35066,8 @@ export namespace Schemas {
updated_at?: string;
};
+ export type ProjectBackwardCompatManagedViewsets = {[key: string]: boolean};
+
/**
* Mixin for serializers to add user access control fields
*/
@@ -35806,6 +35856,50 @@ export namespace Schemas {
* @nullable
*/
readonly is_pending_deletion: boolean | null;
+ /** ID of the project this environment belongs to. */
+ readonly project_id: number;
+ /**
+ * The effective access level the user has for this object
+ * @nullable
+ */
+ readonly user_access_level: string | null;
+ readonly managed_viewsets: ProjectBackwardCompatManagedViewsets;
+ revenue_analytics_config?: TeamRevenueAnalyticsConfig;
+ marketing_analytics_config?: TeamMarketingAnalyticsConfig;
+ customer_analytics_config?: TeamCustomerAnalyticsConfig;
+ workflows_config?: TeamWorkflowsConfig;
+ base_currency?: BaseCurrencyEnum;
+ /**
+ * Enables capturing clicks that had no effect (rage-click detection).
+ * @nullable
+ */
+ capture_dead_clicks?: boolean | null;
+ cookieless_server_hash_mode?: CookielessServerHashModeEnum | null;
+ /** @nullable */
+ human_friendly_comparison_periods?: boolean | null;
+ /** @nullable */
+ feature_flag_confirmation_enabled?: boolean | null;
+ /** @nullable */
+ feature_flag_confirmation_message?: string | null;
+ /**
+ * Whether to automatically apply default evaluation contexts to new feature flags
+ * @nullable
+ */
+ default_evaluation_contexts_enabled?: boolean | null;
+ /**
+ * Whether to require at least one evaluation context tag when creating new feature flags
+ * @nullable
+ */
+ require_evaluation_contexts?: boolean | null;
+ /**
+ * @minimum -2147483648
+ * @maximum 2147483647
+ * @nullable
+ */
+ default_data_theme?: number | null;
+ onboarding_tasks?: unknown;
+ /** @nullable */
+ web_analytics_pre_aggregated_tables_enabled?: boolean | null;
}
/**
diff --git a/services/mcp/src/generated/core/api.ts b/services/mcp/src/generated/core/api.ts
index 7ddd236e0920..61375cb0e5bf 100644
--- a/services/mcp/src/generated/core/api.ts
+++ b/services/mcp/src/generated/core/api.ts
@@ -64,6 +64,11 @@ export const organizationsProjectsPartialUpdateBodySessionRecordingTriggerMatchT
export const organizationsProjectsPartialUpdateBodyRecordingDomainsItemMax = 200
+export const organizationsProjectsPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax = 90
+
+export const organizationsProjectsPartialUpdateBodyDefaultDataThemeMin = -2147483648
+export const organizationsProjectsPartialUpdateBodyDefaultDataThemeMax = 2147483647
+
export const OrganizationsProjectsPartialUpdateBody = /* @__PURE__ */ zod
.object({
name: zod
@@ -229,6 +234,412 @@ export const OrganizationsProjectsPartialUpdateBody = /* @__PURE__ */ zod
conversations_settings: zod.unknown().optional(),
logs_settings: zod.unknown().optional(),
proactive_tasks_enabled: zod.boolean().nullish(),
+ revenue_analytics_config: zod
+ .object({
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+ 'CHF',
+ 'CLP',
+ 'CNY',
+ 'COP',
+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+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '* `AED` - AED\n* `AFN` - AFN\n* `ALL` - ALL\n* `AMD` - AMD\n* `ANG` - ANG\n* `AOA` - AOA\n* `ARS` - ARS\n* `AUD` - AUD\n* `AWG` - AWG\n* `AZN` - AZN\n* `BAM` - BAM\n* `BBD` - BBD\n* `BDT` - BDT\n* `BGN` - BGN\n* `BHD` - BHD\n* `BIF` - BIF\n* `BMD` - BMD\n* `BND` - BND\n* `BOB` - BOB\n* `BRL` - BRL\n* `BSD` - BSD\n* `BTC` - BTC\n* `BTN` - BTN\n* `BWP` - BWP\n* `BYN` - BYN\n* `BZD` - BZD\n* `CAD` - CAD\n* `CDF` - CDF\n* `CHF` - CHF\n* `CLP` - CLP\n* `CNY` - CNY\n* `COP` - COP\n* `CRC` - CRC\n* `CVE` - CVE\n* `CZK` - CZK\n* `DJF` - DJF\n* `DKK` - DKK\n* `DOP` - DOP\n* `DZD` - DZD\n* `EGP` - EGP\n* `ERN` - ERN\n* `ETB` - ETB\n* `EUR` - EUR\n* `FJD` - FJD\n* `GBP` - GBP\n* `GEL` - GEL\n* `GHS` - GHS\n* `GIP` - GIP\n* `GMD` - GMD\n* `GNF` - GNF\n* `GTQ` - GTQ\n* `GYD` - GYD\n* `HKD` - HKD\n* `HNL` - HNL\n* `HRK` - HRK\n* `HTG` - HTG\n* `HUF` - HUF\n* `IDR` - IDR\n* `ILS` - ILS\n* `INR` - INR\n* `IQD` - IQD\n* `IRR` - IRR\n* `ISK` - ISK\n* `JMD` - JMD\n* `JOD` - JOD\n* `JPY` - JPY\n* `KES` - KES\n* `KGS` - KGS\n* `KHR` - KHR\n* `KMF` - KMF\n* `KRW` - KRW\n* `KWD` - KWD\n* `KYD` - KYD\n* `KZT` - KZT\n* `LAK` - LAK\n* `LBP` - LBP\n* `LKR` - LKR\n* `LRD` - LRD\n* `LTL` - LTL\n* `LVL` - LVL\n* `LSL` - LSL\n* `LYD` - LYD\n* `MAD` - MAD\n* `MDL` - MDL\n* `MGA` - MGA\n* `MKD` - MKD\n* `MMK` - MMK\n* `MNT` - MNT\n* `MOP` - MOP\n* `MRU` - MRU\n* `MTL` - MTL\n* `MUR` - MUR\n* `MVR` - MVR\n* `MWK` - MWK\n* `MXN` - MXN\n* `MYR` - MYR\n* `MZN` - MZN\n* `NAD` - NAD\n* `NGN` - NGN\n* `NIO` - NIO\n* `NOK` - NOK\n* `NPR` - NPR\n* `NZD` - NZD\n* `OMR` - OMR\n* `PAB` - PAB\n* `PEN` - PEN\n* `PGK` - PGK\n* `PHP` - PHP\n* `PKR` - PKR\n* `PLN` - PLN\n* `PYG` - PYG\n* `QAR` - QAR\n* `RON` - RON\n* `RSD` - RSD\n* `RUB` - RUB\n* `RWF` - RWF\n* `SAR` - SAR\n* `SBD` - SBD\n* `SCR` - SCR\n* `SDG` - SDG\n* `SEK` - SEK\n* `SGD` - SGD\n* `SRD` - SRD\n* `SSP` - SSP\n* `STN` - STN\n* `SYP` - SYP\n* `SZL` - SZL\n* `THB` - THB\n* `TJS` - TJS\n* `TMT` - TMT\n* `TND` - TND\n* `TOP` - TOP\n* `TRY` - TRY\n* `TTD` - TTD\n* `TWD` - TWD\n* `TZS` - TZS\n* `UAH` - UAH\n* `UGX` - UGX\n* `USD` - USD\n* `UYU` - UYU\n* `UZS` - UZS\n* `VES` - VES\n* `VND` - VND\n* `VUV` - VUV\n* `WST` - WST\n* `XAF` - XAF\n* `XCD` - XCD\n* `XOF` - XOF\n* `XPF` - XPF\n* `YER` - YER\n* `ZAR` - ZAR\n* `ZMW` - ZMW'
+ ),
+ events: zod.unknown().optional(),
+ goals: zod.unknown().optional(),
+ filter_test_accounts: zod.boolean().optional(),
+ })
+ .optional(),
+ marketing_analytics_config: zod
+ .object({
+ sources_map: zod.unknown().optional(),
+ conversion_goals: zod.unknown().optional(),
+ attribution_window_days: zod
+ .number()
+ .min(1)
+ .max(organizationsProjectsPartialUpdateBodyMarketingAnalyticsConfigAttributionWindowDaysMax)
+ .optional(),
+ attribution_mode: zod
+ .enum(['first_touch', 'last_touch', 'linear', 'time_decay', 'position_based'])
+ .optional()
+ .describe(
+ '* `first_touch` - First Touch\n* `last_touch` - Last Touch\n* `linear` - Linear\n* `time_decay` - Time Decay\n* `position_based` - Position Based'
+ ),
+ campaign_name_mappings: zod.unknown().optional(),
+ custom_source_mappings: zod.unknown().optional(),
+ campaign_field_preferences: zod.unknown().optional(),
+ })
+ .optional(),
+ customer_analytics_config: zod
+ .object({
+ activity_event: zod.unknown().optional().describe('Event used as the activity signal (DAU/WAU/MAU).'),
+ signup_pageview_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count signup pageviews on dashboards.'),
+ signup_event: zod.unknown().optional().describe('Event used to count signups on dashboards.'),
+ subscription_event: zod
+ .unknown()
+ .optional()
+ .describe('Event used to count subscriptions on dashboards.'),
+ payment_event: zod.unknown().optional().describe('Event used to count payments on dashboards.'),
+ account_group_type_index: zod
+ .number()
+ .nullish()
+ .describe(
+ 'Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project.'
+ ),
+ })
+ .optional(),
+ workflows_config: zod
+ .object({
+ capture_workflows_engagement_events: zod
+ .boolean()
+ .optional()
+ .describe(
+ 'When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_*) alongside the existing workflow metrics.'
+ ),
+ })
+ .optional(),
+ base_currency: zod
+ .enum([
+ 'AED',
+ 'AFN',
+ 'ALL',
+ 'AMD',
+ 'ANG',
+ 'AOA',
+ 'ARS',
+ 'AUD',
+ 'AWG',
+ 'AZN',
+ 'BAM',
+ 'BBD',
+ 'BDT',
+ 'BGN',
+ 'BHD',
+ 'BIF',
+ 'BMD',
+ 'BND',
+ 'BOB',
+ 'BRL',
+ 'BSD',
+ 'BTC',
+ 'BTN',
+ 'BWP',
+ 'BYN',
+ 'BZD',
+ 'CAD',
+ 'CDF',
+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+ 'VUV',
+ 'WST',
+ 'XAF',
+ 'XCD',
+ 'XOF',
+ 'XPF',
+ 'YER',
+ 'ZAR',
+ 'ZMW',
+ ])
+ .optional()
+ .describe(
+ '* `AED` - AED\n* `AFN` - AFN\n* `ALL` - ALL\n* `AMD` - AMD\n* `ANG` - ANG\n* `AOA` - AOA\n* `ARS` - ARS\n* `AUD` - AUD\n* `AWG` - AWG\n* `AZN` - AZN\n* `BAM` - BAM\n* `BBD` - BBD\n* `BDT` - BDT\n* `BGN` - BGN\n* `BHD` - BHD\n* `BIF` - BIF\n* `BMD` - BMD\n* `BND` - BND\n* `BOB` - BOB\n* `BRL` - BRL\n* `BSD` - BSD\n* `BTC` - BTC\n* `BTN` - BTN\n* `BWP` - BWP\n* `BYN` - BYN\n* `BZD` - BZD\n* `CAD` - CAD\n* `CDF` - CDF\n* `CHF` - CHF\n* `CLP` - CLP\n* `CNY` - CNY\n* `COP` - COP\n* `CRC` - CRC\n* `CVE` - CVE\n* `CZK` - CZK\n* `DJF` - DJF\n* `DKK` - DKK\n* `DOP` - DOP\n* `DZD` - DZD\n* `EGP` - EGP\n* `ERN` - ERN\n* `ETB` - ETB\n* `EUR` - EUR\n* `FJD` - FJD\n* `GBP` - GBP\n* `GEL` - GEL\n* `GHS` - GHS\n* `GIP` - GIP\n* `GMD` - GMD\n* `GNF` - GNF\n* `GTQ` - GTQ\n* `GYD` - GYD\n* `HKD` - HKD\n* `HNL` - HNL\n* `HRK` - HRK\n* `HTG` - HTG\n* `HUF` - HUF\n* `IDR` - IDR\n* `ILS` - ILS\n* `INR` - INR\n* `IQD` - IQD\n* `IRR` - IRR\n* `ISK` - ISK\n* `JMD` - JMD\n* `JOD` - JOD\n* `JPY` - JPY\n* `KES` - KES\n* `KGS` - KGS\n* `KHR` - KHR\n* `KMF` - KMF\n* `KRW` - KRW\n* `KWD` - KWD\n* `KYD` - KYD\n* `KZT` - KZT\n* `LAK` - LAK\n* `LBP` - LBP\n* `LKR` - LKR\n* `LRD` - LRD\n* `LTL` - LTL\n* `LVL` - LVL\n* `LSL` - LSL\n* `LYD` - LYD\n* `MAD` - MAD\n* `MDL` - MDL\n* `MGA` - MGA\n* `MKD` - MKD\n* `MMK` - MMK\n* `MNT` - MNT\n* `MOP` - MOP\n* `MRU` - MRU\n* `MTL` - MTL\n* `MUR` - MUR\n* `MVR` - MVR\n* `MWK` - MWK\n* `MXN` - MXN\n* `MYR` - MYR\n* `MZN` - MZN\n* `NAD` - NAD\n* `NGN` - NGN\n* `NIO` - NIO\n* `NOK` - NOK\n* `NPR` - NPR\n* `NZD` - NZD\n* `OMR` - OMR\n* `PAB` - PAB\n* `PEN` - PEN\n* `PGK` - PGK\n* `PHP` - PHP\n* `PKR` - PKR\n* `PLN` - PLN\n* `PYG` - PYG\n* `QAR` - QAR\n* `RON` - RON\n* `RSD` - RSD\n* `RUB` - RUB\n* `RWF` - RWF\n* `SAR` - SAR\n* `SBD` - SBD\n* `SCR` - SCR\n* `SDG` - SDG\n* `SEK` - SEK\n* `SGD` - SGD\n* `SRD` - SRD\n* `SSP` - SSP\n* `STN` - STN\n* `SYP` - SYP\n* `SZL` - SZL\n* `THB` - THB\n* `TJS` - TJS\n* `TMT` - TMT\n* `TND` - TND\n* `TOP` - TOP\n* `TRY` - TRY\n* `TTD` - TTD\n* `TWD` - TWD\n* `TZS` - TZS\n* `UAH` - UAH\n* `UGX` - UGX\n* `USD` - USD\n* `UYU` - UYU\n* `UZS` - UZS\n* `VES` - VES\n* `VND` - VND\n* `VUV` - VUV\n* `WST` - WST\n* `XAF` - XAF\n* `XCD` - XCD\n* `XOF` - XOF\n* `XPF` - XPF\n* `YER` - YER\n* `ZAR` - ZAR\n* `ZMW` - ZMW'
+ ),
+ capture_dead_clicks: zod
+ .boolean()
+ .nullish()
+ .describe('Enables capturing clicks that had no effect (rage-click detection).'),
+ cookieless_server_hash_mode: zod
+ .union([
+ zod
+ .union([zod.literal(0), zod.literal(1), zod.literal(2)])
+ .describe('* `0` - Disabled\n* `1` - Stateless\n* `2` - Stateful'),
+ zod.null(),
+ ])
+ .optional(),
+ human_friendly_comparison_periods: zod.boolean().nullish(),
+ feature_flag_confirmation_enabled: zod.boolean().nullish(),
+ feature_flag_confirmation_message: zod.string().nullish(),
+ default_evaluation_contexts_enabled: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to automatically apply default evaluation contexts to new feature flags'),
+ require_evaluation_contexts: zod
+ .boolean()
+ .nullish()
+ .describe('Whether to require at least one evaluation context tag when creating new feature flags'),
+ default_data_theme: zod
+ .number()
+ .min(organizationsProjectsPartialUpdateBodyDefaultDataThemeMin)
+ .max(organizationsProjectsPartialUpdateBodyDefaultDataThemeMax)
+ .nullish(),
+ onboarding_tasks: zod.unknown().optional(),
+ web_analytics_pre_aggregated_tables_enabled: zod.boolean().nullish(),
})
.describe('Mixin for serializers to add user access control fields')
diff --git a/services/mcp/src/tools/generated/core.ts b/services/mcp/src/tools/generated/core.ts
index fe016d386109..777e160cf6db 100644
--- a/services/mcp/src/tools/generated/core.ts
+++ b/services/mcp/src/tools/generated/core.ts
@@ -359,6 +359,51 @@ const projectSettingsUpdate = (): ToolBase<typeof ProjectSettingsUpdateSchema, S
if (params.proactive_tasks_enabled !== undefined) {
body['proactive_tasks_enabled'] = params.proactive_tasks_enabled
}
+ if (params.revenue_analytics_config !== undefined) {
+ body['revenue_analytics_config'] = params.revenue_analytics_config
+ }
+ if (params.marketing_analytics_config !== undefined) {
+ body['marketing_analytics_config'] = params.marketing_analytics_config
+ }
+ if (params.customer_analytics_config !== undefined) {
+ body['customer_analytics_config'] = params.customer_analytics_config
+ }
+ if (params.workflows_config !== undefined) {
+ body['workflows_config'] = params.workflows_config
+ }
+ if (params.base_currency !== undefined) {
+ body['base_currency'] = params.base_currency
+ }
+ if (params.capture_dead_clicks !== undefined) {
+ body['capture_dead_clicks'] = params.capture_dead_clicks
+ }
+ if (params.cookieless_server_hash_mode !== undefined) {
+ body['cookieless_server_hash_mode'] = params.cookieless_server_hash_mode
+ }
+ if (params.human_friendly_comparison_periods !== undefined) {
+ body['human_friendly_comparison_periods'] = params.human_friendly_comparison_periods
+ }
+ if (params.feature_flag_confirmation_enabled !== undefined) {
+ body['feature_flag_confirmation_enabled'] = params.feature_flag_confirmation_enabled
+ }
+ if (params.feature_flag_confirmation_message !== undefined) {
+ body['feature_flag_confirmation_message'] = params.feature_flag_confirmation_message
+ }
+ if (params.default_evaluation_contexts_enabled !== undefined) {
+ body['default_evaluation_contexts_enabled'] = params.default_evaluation_contexts_enabled
+ }
+ if (params.require_evaluation_contexts !== undefined) {
+ body['require_evaluation_contexts'] = params.require_evaluation_contexts
+ }
+ if (params.default_data_theme !== undefined) {
+ body['default_data_theme'] = params.default_data_theme
+ }
+ if (params.onboarding_tasks !== undefined) {
+ body['onboarding_tasks'] = params.onboarding_tasks
+ }
+ if (params.web_analytics_pre_aggregated_tables_enabled !== undefined) {
+ body['web_analytics_pre_aggregated_tables_enabled'] = params.web_analytics_pre_aggregated_tables_enabled
+ }
const result = await context.api.request<Schemas.ProjectBackwardCompat>({
method: 'PATCH',
path: `/api/organizations/${encodeURIComponent(String(orgId))}/projects/${encodeURIComponent(String(params.id))}/`,
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json
index 3f6b1911a9bc..a350e7c551fb 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json
@@ -57,6 +57,164 @@
],
"description": "Enables automatic capture of Core Web Vitals performance metrics."
},
+ "base_currency": {
+ "description": "* `AED` - AED\n* `AFN` - AFN\n* `ALL` - ALL\n* `AMD` - AMD\n* `ANG` - ANG\n* `AOA` - AOA\n* `ARS` - ARS\n* `AUD` - AUD\n* `AWG` - AWG\n* `AZN` - AZN\n* `BAM` - BAM\n* `BBD` - BBD\n* `BDT` - BDT\n* `BGN` - BGN\n* `BHD` - BHD\n* `BIF` - BIF\n* `BMD` - BMD\n* `BND` - BND\n* `BOB` - BOB\n* `BRL` - BRL\n* `BSD` - BSD\n* `BTC` - BTC\n* `BTN` - BTN\n* `BWP` - BWP\n* `BYN` - BYN\n* `BZD` - BZD\n* `CAD` - CAD\n* `CDF` - CDF\n* `CHF` - CHF\n* `CLP` - CLP\n* `CNY` - CNY\n* `COP` - COP\n* `CRC` - CRC\n* `CVE` - CVE\n* `CZK` - CZK\n* `DJF` - DJF\n* `DKK` - DKK\n* `DOP` - DOP\n* `DZD` - DZD\n* `EGP` - EGP\n* `ERN` - ERN\n* `ETB` - ETB\n* `EUR` - EUR\n* `FJD` - FJD\n* `GBP` - GBP\n* `GEL` - GEL\n* `GHS` - GHS\n* `GIP` - GIP\n* `GMD` - GMD\n* `GNF` - GNF\n* `GTQ` - GTQ\n* `GYD` - GYD\n* `HKD` - HKD\n* `HNL` - HNL\n* `HRK` - HRK\n* `HTG` - HTG\n* `HUF` - HUF\n* `IDR` - IDR\n* `ILS` - ILS\n* `INR` - INR\n* `IQD` - IQD\n* `IRR` - IRR\n* `ISK` - ISK\n* `JMD` - JMD\n* `JOD` - JOD\n* `JPY` - JPY\n* `KES` - KES\n* `KGS` - KGS\n* `KHR` - KHR\n* `KMF` - KMF\n* `KRW` - KRW\n* `KWD` - KWD\n* `KYD` - KYD\n* `KZT` - KZT\n* `LAK` - LAK\n* `LBP` - LBP\n* `LKR` - LKR\n* `LRD` - LRD\n* `LTL` - LTL\n* `LVL` - LVL\n* `LSL` - LSL\n* `LYD` - LYD\n* `MAD` - MAD\n* `MDL` - MDL\n* `MGA` - MGA\n* `MKD` - MKD\n* `MMK` - MMK\n* `MNT` - MNT\n* `MOP` - MOP\n* `MRU` - MRU\n* `MTL` - MTL\n* `MUR` - MUR\n* `MVR` - MVR\n* `MWK` - MWK\n* `MXN` - MXN\n* `MYR` - MYR\n* `MZN` - MZN\n* `NAD` - NAD\n* `NGN` - NGN\n* `NIO` - NIO\n* `NOK` - NOK\n* `NPR` - NPR\n* `NZD` - NZD\n* `OMR` - OMR\n* `PAB` - PAB\n* `PEN` - PEN\n* `PGK` - PGK\n* `PHP` - PHP\n* `PKR` - PKR\n* `PLN` - PLN\n* `PYG` - PYG\n* `QAR` - QAR\n* `RON` - RON\n* `RSD` - RSD\n* `RUB` - RUB\n* `RWF` - RWF\n* `SAR` - SAR\n* `SBD` - SBD\n* `SCR` - SCR\n* `SDG` - SDG\n* `SEK` - SEK\n* `SGD` - SGD\n* `SRD` - SRD\n* `SSP` - SSP\n* `STN` - STN\n* `SYP` - SYP\n* `SZL` - SZL\n* `THB` - THB\n* `TJS` - TJS\n* `TMT` - TMT\n* `TND` - TND\n* `TOP` - TOP\n* `TRY` - TRY\n* `TTD` - TTD\n* `TWD` - TWD\n* `TZS` - TZS\n* `UAH` - UAH\n* `UGX` - UGX\n* `USD` - USD\n* `UYU` - UYU\n* `UZS` - UZS\n* `VES` - VES\n* `VND` - VND\n* `VUV` - VUV\n* `WST` - WST\n* `XAF` - XAF\n* `XCD` - XCD\n* `XOF` - XOF\n* `XPF` - XPF\n* `YER` - YER\n* `ZAR` - ZAR\n* `ZMW` - ZMW",
+ "enum": [
+ "AED",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AUD",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BGN",
+ "BHD",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BRL",
+ "BSD",
+ "BTC",
+ "BTN",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CAD",
+ "CDF",
+ "CHF",
+ "CLP",
+ "CNY",
+ "COP",
+ "CRC",
+ "CVE",
+ "CZK",
+ "DJF",
+ "DKK",
+ "DOP",
+ "DZD",
+ "EGP",
+ "ERN",
+ "ETB",
+ "EUR",
+ "FJD",
+ "GBP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HKD",
+ "HNL",
+ "HRK",
+ "HTG",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "IQD",
+ "IRR",
+ "ISK",
+ "JMD",
+ "JOD",
+ "JPY",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KRW",
+ "KWD",
+ "KYD",
+ "KZT",
+ "LAK",
+ "LBP",
+ "LKR",
+ "LRD",
+ "LTL",
+ "LVL",
+ "LSL",
+ "LYD",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MRU",
+ "MTL",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MXN",
+ "MYR",
+ "MZN",
+ "NAD",
+ "NGN",
+ "NIO",
+ "NOK",
+ "NPR",
+ "NZD",
+ "OMR",
+ "PAB",
+ "PEN",
+ "PGK",
+ "PHP",
+ "PKR",
+ "PLN",
+ "PYG",
+ "QAR",
+ "RON",
+ "RSD",
+ "RUB",
+ "RWF",
+ "SAR",
+ "SBD",
+ "SCR",
+ "SDG",
+ "SEK",
+ "SGD",
+ "SRD",
+ "SSP",
+ "STN",
+ "SYP",
+ "SZL",
+ "THB",
+ "TJS",
+ "TMT",
+ "TND",
+ "TOP",
+ "TRY",
+ "TTD",
+ "TWD",
+ "TZS",
+ "UAH",
+ "UGX",
+ "USD",
+ "UYU",
+ "UZS",
+ "VES",
+ "VND",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZAR",
+ "ZMW"
+ ],
+ "type": "string"
+ },
"business_model": {
"anyOf": [
{
@@ -85,6 +243,17 @@
],
"description": "Enables capturing browser console logs alongside session replays."
},
+ "capture_dead_clicks": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Enables capturing clicks that had no effect (rage-click detection)."
+ },
"capture_performance_opt_in": {
"anyOf": [
{
@@ -111,11 +280,109 @@
"description": "Enables the customer conversations / live chat product for this project."
},
"conversations_settings": {},
+ "cookieless_server_hash_mode": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "const": 0,
+ "type": "number"
+ },
+ {
+ "const": 1,
+ "type": "number"
+ },
+ {
+ "const": 2,
+ "type": "number"
+ }
+ ],
+ "description": "* `0` - Disabled\n* `1` - Stateless\n* `2` - Stateful"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"correlation_config": {},
+ "customer_analytics_config": {
+ "properties": {
+ "account_group_type_index": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Index of the group type to treat as an Account in customer analytics. Must reference an existing group type configured for the project."
+ },
+ "activity_event": {
+ "description": "Event used as the activity signal (DAU/WAU/MAU)."
+ },
+ "payment_event": {
+ "description": "Event used to count payments on dashboards."
+ },
+ "signup_event": {
+ "description": "Event used to count signups on dashboards."
+ },
+ "signup_pageview_event": {
+ "description": "Event used to count signup pageviews on dashboards."
+ },
+ "subscription_event": {
+ "description": "Event used to count subscriptions on dashboards."
+ }
+ },
+ "type": "object"
+ },
"data_attributes": {
"description": "Element attributes that posthog-js should capture as action identifiers (e.g. `['data-attr']`)."
},
+ "default_data_theme": {
+ "anyOf": [
+ {
+ "maximum": 2147483647,
+ "minimum": -2147483648,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "default_evaluation_contexts_enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Whether to automatically apply default evaluation contexts to new feature flags"
+ },
"extra_settings": {},
+ "feature_flag_confirmation_enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "feature_flag_confirmation_message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"flags_persistence_default": {
"anyOf": [
{
@@ -139,6 +406,16 @@
],
"description": "Enables heatmap recording on pages that host posthog-js."
},
+ "human_friendly_comparison_periods": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"id": {
"description": "Project ID, or `@current` to target the caller's active project.",
"maximum": 2147483647,
@@ -172,6 +449,26 @@
]
},
"logs_settings": {},
+ "marketing_analytics_config": {
+ "properties": {
+ "attribution_mode": {
+ "description": "* `first_touch` - First Touch\n* `last_touch` - Last Touch\n* `linear` - Linear\n* `time_decay` - Time Decay\n* `position_based` - Position Based",
+ "enum": ["first_touch", "last_touch", "linear", "time_decay", "position_based"],
+ "type": "string"
+ },
+ "attribution_window_days": {
+ "maximum": 90,
+ "minimum": 1,
+ "type": "number"
+ },
+ "campaign_field_preferences": {},
+ "campaign_name_mappings": {},
+ "conversion_goals": {},
+ "custom_source_mappings": {},
+ "sources_map": {}
+ },
+ "type": "object"
+ },
"modifiers": {},
"name": {
"description": "Human-readable project name.",
@@ -179,6 +476,7 @@
"minLength": 1,
"type": "string"
},
+ "onboarding_tasks": {},
"path_cleaning_filters": {
"description": "Regex rewrite rules that collapse dynamic path segments (e.g. user IDs) before displaying URLs in paths."
},
@@ -262,6 +560,185 @@
],
"description": "Origins permitted to record session replays and heatmaps. Empty list allows all origins."
},
+ "require_evaluation_contexts": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Whether to require at least one evaluation context tag when creating new feature flags"
+ },
+ "revenue_analytics_config": {
+ "properties": {
+ "base_currency": {
+ "description": "* `AED` - AED\n* `AFN` - AFN\n* `ALL` - ALL\n* `AMD` - AMD\n* `ANG` - ANG\n* `AOA` - AOA\n* `ARS` - ARS\n* `AUD` - AUD\n* `AWG` - AWG\n* `AZN` - AZN\n* `BAM` - BAM\n* `BBD` - BBD\n* `BDT` - BDT\n* `BGN` - BGN\n* `BHD` - BHD\n* `BIF` - BIF\n* `BMD` - BMD\n* `BND` - BND\n* `BOB` - BOB\n* `BRL` - BRL\n* `BSD` - BSD\n* `BTC` - BTC\n* `BTN` - BTN\n* `BWP` - BWP\n* `BYN` - BYN\n* `BZD` - BZD\n* `CAD` - CAD\n* `CDF` - CDF\n* `CHF` - CHF\n* `CLP` - CLP\n* `CNY` - CNY\n* `COP` - COP\n* `CRC` - CRC\n* `CVE` - CVE\n* `CZK` - CZK\n* `DJF` - DJF\n* `DKK` - DKK\n* `DOP` - DOP\n* `DZD` - DZD\n* `EGP` - EGP\n* `ERN` - ERN\n* `ETB` - ETB\n* `EUR` - EUR\n* `FJD` - FJD\n* `GBP` - GBP\n* `GEL` - GEL\n* `GHS` - GHS\n* `GIP` - GIP\n* `GMD` - GMD\n* `GNF` - GNF\n* `GTQ` - GTQ\n* `GYD` - GYD\n* `HKD` - HKD\n* `HNL` - HNL\n* `HRK` - HRK\n* `HTG` - HTG\n* `HUF` - HUF\n* `IDR` - IDR\n* `ILS` - ILS\n* `INR` - INR\n* `IQD` - IQD\n* `IRR` - IRR\n* `ISK` - ISK\n* `JMD` - JMD\n* `JOD` - JOD\n* `JPY` - JPY\n* `KES` - KES\n* `KGS` - KGS\n* `KHR` - KHR\n* `KMF` - KMF\n* `KRW` - KRW\n* `KWD` - KWD\n* `KYD` - KYD\n* `KZT` - KZT\n* `LAK` - LAK\n* `LBP` - LBP\n* `LKR` - LKR\n* `LRD` - LRD\n* `LTL` - LTL\n* `LVL` - LVL\n* `LSL` - LSL\n* `LYD` - LYD\n* `MAD` - MAD\n* `MDL` - MDL\n* `MGA` - MGA\n* `MKD` - MKD\n* `MMK` - MMK\n* `MNT` - MNT\n* `MOP` - MOP\n* `MRU` - MRU\n* `MTL` - MTL\n* `MUR` - MUR\n* `MVR` - MVR\n* `MWK` - MWK\n* `MXN` - MXN\n* `MYR` - MYR\n* `MZN` - MZN\n* `NAD` - NAD\n* `NGN` - NGN\n* `NIO` - NIO\n* `NOK` - NOK\n* `NPR` - NPR\n* `NZD` - NZD\n* `OMR` - OMR\n* `PAB` - PAB\n* `PEN` - PEN\n* `PGK` - PGK\n* `PHP` - PHP\n* `PKR` - PKR\n* `PLN` - PLN\n* `PYG` - PYG\n* `QAR` - QAR\n* `RON` - RON\n* `RSD` - RSD\n* `RUB` - RUB\n* `RWF` - RWF\n* `SAR` - SAR\n* `SBD` - SBD\n* `SCR` - SCR\n* `SDG` - SDG\n* `SEK` - SEK\n* `SGD` - SGD\n* `SRD` - SRD\n* `SSP` - SSP\n* `STN` - STN\n* `SYP` - SYP\n* `SZL` - SZL\n* `THB` - THB\n* `TJS` - TJS\n* `TMT` - TMT\n* `TND` - TND\n* `TOP` - TOP\n* `TRY` - TRY\n* `TTD` - TTD\n* `TWD` - TWD\n* `TZS` - TZS\n* `UAH` - UAH\n* `UGX` - UGX\n* `USD` - USD\n* `UYU` - UYU\n* `UZS` - UZS\n* `VES` - VES\n* `VND` - VND\n* `VUV` - VUV\n* `WST` - WST\n* `XAF` - XAF\n* `XCD` - XCD\n* `XOF` - XOF\n* `XPF` - XPF\n* `YER` - YER\n* `ZAR` - ZAR\n* `ZMW` - ZMW",
+ "enum": [
+ "AED",
+ "AFN",
+ "ALL",
+ "AMD",
+ "ANG",
+ "AOA",
+ "ARS",
+ "AUD",
+ "AWG",
+ "AZN",
+ "BAM",
+ "BBD",
+ "BDT",
+ "BGN",
+ "BHD",
+ "BIF",
+ "BMD",
+ "BND",
+ "BOB",
+ "BRL",
+ "BSD",
+ "BTC",
+ "BTN",
+ "BWP",
+ "BYN",
+ "BZD",
+ "CAD",
+ "CDF",
+ "CHF",
+ "CLP",
+ "CNY",
+ "COP",
+ "CRC",
+ "CVE",
+ "CZK",
+ "DJF",
+ "DKK",
+ "DOP",
+ "DZD",
+ "EGP",
+ "ERN",
+ "ETB",
+ "EUR",
+ "FJD",
+ "GBP",
+ "GEL",
+ "GHS",
+ "GIP",
+ "GMD",
+ "GNF",
+ "GTQ",
+ "GYD",
+ "HKD",
+ "HNL",
+ "HRK",
+ "HTG",
+ "HUF",
+ "IDR",
+ "ILS",
+ "INR",
+ "IQD",
+ "IRR",
+ "ISK",
+ "JMD",
+ "JOD",
+ "JPY",
+ "KES",
+ "KGS",
+ "KHR",
+ "KMF",
+ "KRW",
+ "KWD",
+ "KYD",
+ "KZT",
+ "LAK",
+ "LBP",
+ "LKR",
+ "LRD",
+ "LTL",
+ "LVL",
+ "LSL",
+ "LYD",
+ "MAD",
+ "MDL",
+ "MGA",
+ "MKD",
+ "MMK",
+ "MNT",
+ "MOP",
+ "MRU",
+ "MTL",
+ "MUR",
+ "MVR",
+ "MWK",
+ "MXN",
+ "MYR",
+ "MZN",
+ "NAD",
+ "NGN",
+ "NIO",
+ "NOK",
+ "NPR",
+ "NZD",
+ "OMR",
+ "PAB",
+ "PEN",
+ "PGK",
+ "PHP",
+ "PKR",
+ "PLN",
+ "PYG",
+ "QAR",
+ "RON",
+ "RSD",
+ "RUB",
+ "RWF",
+ "SAR",
+ "SBD",
+ "SCR",
+ "SDG",
+ "SEK",
+ "SGD",
+ "SRD",
+ "SSP",
+ "STN",
+ "SYP",
+ "SZL",
+ "THB",
+ "TJS",
+ "TMT",
+ "TND",
+ "TOP",
+ "TRY",
+ "TTD",
+ "TWD",
+ "TZS",
+ "UAH",
+ "UGX",
+ "USD",
+ "UYU",
+ "UZS",
+ "VES",
+ "VND",
+ "VUV",
+ "WST",
+ "XAF",
+ "XCD",
+ "XOF",
+ "XPF",
+ "YER",
+ "ZAR",
+ "ZMW"
+ ],
+ "type": "string"
+ },
+ "events": {},
+ "filter_test_accounts": {
+ "type": "boolean"
+ },
+ "goals": {}
+ },
+ "type": "object"
+ },
"session_recording_event_trigger_config": {
"anyOf": [
{
@@ -387,6 +864,16 @@
"description": "IANA timezone used for date-based filters and reporting (e.g. `America/Los_Angeles`).\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",
"type": "string"
},
+ "web_analytics_pre_aggregated_tables_enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"week_start_day": {
"anyOf": [
{
@@ -407,6 +894,15 @@
}
],
"description": "First day of the week for date range filters. 0 = Sunday, 1 = Monday.\n\n* `0` - Sunday\n* `1` - Monday"
+ },
+ "workflows_config": {
+ "properties": {
+ "capture_workflows_engagement_events": {
+ "description": "When enabled, workflows engagement activity (email sends, opens, clicks, bounces, spam reports, unsubscribes) is captured as standard PostHog events ($workflows_email_*) alongside the existing workflow metrics.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
}
},
"required": ["id"],